We recently had a problem where our fields with default values where not getting properly populated in the database during row creation. This can occur when the EDMX model is created in the designer and the default fields do not have their StoreGeneratedPattern property set to Computed or Identity. Easy enough to fix, simply open... Continue Reading →
Real World: Unit Testing Queries Against Entity Framework (EF) Model / Repositories
Unit testing is a tricky beast. As with all unit tests it is important to abstract any dependencies – so in the case of EF it’s the data persistence source. This must be handled carefully because EF creates a container that performs the interaction with the data source. Abstracting that container (via mocking or stubbing)... Continue Reading →
Silverlight 3, Validation, MVVM, WCF and EF
All the current articles and tutorials on Silverlight 3 Validation show really simplistic examples, business objects in the UI space, no services etc etc My Problem When the business objects are being created and managed via the entity framework, there does not appear to be any simple ways of adding the validation properties to the... Continue Reading →