-
Build Test
Build Test
This is a test to build a project which has code generation (the generation is omitted here). The core code is based on Msdn, to programmatically build projects, useful in other scenarios. ...
-
Entity Framework Code First Databases
Entity Framework Code First Databases
Metadata Tables
__MigrationHistory is created in EF 4.3 (and is marked as a system table, so hidden)
There's one table per context- so you can't have multi-tenant...
-
NHibernate sample repository
Notes (HQL/ICriteria)
ISession.Load/Get: For invalid ids, Get returns null, and Load returns a proxy but throws when you access properties or save.
Generally Get is more useful, but Load is useful wh...
-
SortableBindingList<T> (for Windows.Forms)
SortableBindingList<T> (for Windows.Forms)
In Windows.Forms, BindingList<T> is a better choice than List<T> but DataGridView can't sort it. Hence this. Based on MSDN code. Each comparison has 2 calls ...
-
NHibernate queries
NHibernate Queries
NHibernate's methods of querying are powerful. NHibernate's older HQL and Criteria/QueryOver support advanced scenarios, but there's a learning curve. NHibernate supports Linq (sess...
-
NHibernate SQL
NHibernate SQL
Using the NHibernate abstraction is generally best, but sometimes it's easier (or just more familiar) using raw SQL.
Using normal ADO
If you have a stored procedure or a particular sql...