I'm looking for a .Net 3.5 ORM framework with a rather unusual set of requirements:
I'll probably have to write it myself, as I don't think there is an existing ORM that meets these requirements.
However, I don't want to re-invent the wheel if there is one, hence this question.
I'm using VS2010, but I don't know when my webhost (LFC) will upgrade to .Net 4.0
I don't think one framework will do it, but also you don't need to re-invent the wheel.
You could use a normal ORM like Entities Framework, NHibernate or Subsonic for the non-dynamic part and hack some ruby-like-migrations framework for the dynamic part.
It should be easy since these migrations frameworks already have all the methods for schema modification mapped to several databases, it's just the matter of writing some classes to expose them.
EDIT: The migrations-like framework would be for this: "I need to create and alter tables at runtime with schemas defined by my end-users. (Obviously, that wouldn't be strongly-typed; I'm looking for something like a DataTable there)"
For instance, with sharp-migrations you can write something like:
DataClient.Add
.Table("TableName")
.WithColumns(
Column.AutoIncrement("ID").NotNull().AsPrimaryKey(),
Column.String("NAME"),
Column.Date("DATESTART"),
Column.Int32("SOMENUMBER"),
);
As you can see, it's using strings so you can create any table at runtime.
Cheers and good luck,
André Carlucci
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With