c# Programming Glossary: pocos
EntitySet System.InvalidOperationException - “the entity type is not part of the model for the current context” http://stackoverflow.com/questions/13634819/entityset-system-invalidoperationexception-the-entity-type-is-not-part-of-the Model First methodology. The EDMX file was built then the POCOs. In the connection string is the metadata section that maps..
What ORM for .net should I use? http://stackoverflow.com/questions/1691575/what-orm-for-net-should-i-use with NHibernate a breeze just write your entities as POCOs and load them fully automatically to create your database the.. m m.AutoMappings.Add AutoMap.AssemblyOf User loads all POCOse .Where t t.Namespace this.Namespace here go the associations..
Where are the Entity Framework t4 templates for Data Annotations? http://stackoverflow.com/questions/2748619/where-are-the-entity-framework-t4-templates-for-data-annotations generates DataAnnotations. Do they even exist I generate POCOs with the standard t4 templates. The actual database table has..
XML Serialization and Schema without xsd.exe http://stackoverflow.com/questions/336988/xml-serialization-and-schema-without-xsd-exe i use xml serialization for the reading of my Config POCOs. to get intellisense support in visual studio for xml files..
Entity Framework Multiple Object Contexts http://stackoverflow.com/questions/5693843/entity-framework-multiple-object-contexts operations. That will remove dynamic proxies from your POCOs and because of that they will be independent on the context...
Is it possible to prevent EntityFramework 4 from overwriting customized properties? http://stackoverflow.com/questions/6931014/is-it-possible-to-prevent-entityframework-4-from-overwriting-customized-properti customized properties I am using EF 4 Database first POCOs. Because EF has no easy way to state that incoming DateTimes..
POCO vs DTO http://stackoverflow.com/questions/725348/poco-vs-dto used to transfer data using objects. While you can treat POCOs like DTOs you run the risk of creating an anemic domain model.. you're almost always better off creating separate domain POCOs and translating them to DTOs. DDD domain driven design defines..
Looking for a fast and easy way to coalesce all properties on a POCO http://stackoverflow.com/questions/7422861/looking-for-a-fast-and-easy-way-to-coalesce-all-properties-on-a-poco ... etc ... I've got a scenario where I'm building these POCOs piecemeal and at the end I'd like to get one of them with all..
AutoMapper (Or Similar) - Allow Mapping of Dynamic types? http://stackoverflow.com/questions/7778216/automapper-or-similar-allow-mapping-of-dynamic-types you can try to use one of other micro ORMs which are using POCOs instead of dynamic. Like Dapper PetaPoco Actually it's not hard..
Detect entities which have the same children http://stackoverflow.com/questions/7780455/detect-entities-which-have-the-same-children http msdn.microsoft.com en us library bb896272.aspx For POCOs works also for EntityObject derived entities http msdn.microsoft.com..
Why use 'virtual' for properties in classes? http://stackoverflow.com/questions/8542864/why-use-virtual-for-properties-in-classes certain properties to be marked virtual in your base class POCOs. It literally creates new types that derive from your POCO types...
ServiceStack.Net Redis: Storing Related Objects vs. Related Object Ids http://stackoverflow.com/questions/8914349/servicestack-net-redis-storing-related-objects-vs-related-object-ids Entities are stored The C# Redis Client works with any POCOs that have a single primary key which by default is expected.. this convention overridable with ModelConfig . Essentially POCOs gets stored into Redis as serialized JSON with both the typeof.. key for that instance. E.g urn Poco Id ' Id 1 Foo Bar ' POCOs in the C# Client are conventionally serialized using ServiceStack's..
|