justinemathews.com - J Mathews | expertise in .Net technologies

Description: expertise in .Net technologies

inheritance (122) asp.net mvc (88) web api (47) entity framework (38) nhibernate (11) mvc5 (6) discriminator (6) web api2 (1) subclass (1) entity framework with repository (1)

Example domain paragraphs

Web API 2 has the CORS support  out of the Box. Its available as attributes called EnabledCors and DisableCors. As an attribute it can be extended based on our requirement,  we can easily bring the feature to allow or disallow specific external sites to share resource. Cross-Origin attribute can be enabled globally on WebApiConfig as… Read More →

Using Nhibernate subclass, we can easily bring the inheritance into model.In the real time business object models are making use of OOPS concepts and Lets see how we can map the object to data structure of SQL. Subclass and discriminator really help us to avoid one to one mapping of object to SQL table.See below… Read More →

Repository pattern provides more object oriented way of encapsulating objects of the data store and operations can performed through neatly separated data classes. Please find below how Repository pattern implemented with entity framework and is consumed using asp.net mvc. Use either StructureMap or Ninject for dependency injection of the Entity Repository Factory object to the… Read More →