code-first
Entity Framework Code First Casting Columns
I have an class public class Foo { public int UserId { get; set; } } and I\'m using the code first fluent mapping to map this to the database.[详细]
2023-03-24 06:41 分类:问答Entity Framework mapping
I\'ve made simple classes that simulate the classes I have (sorry I had to make up the classes, the usual example databases do not have the structure I wanted to ask about):[详细]
2023-03-23 23:36 分类:问答System.LocalDataStoreElement[] memory allocation
After many OutOfMemoryExceptions I run memory profiler. System.LocalDataStoreElement[] cunsumes 123 GB of memory. Application consumes 70 MB after initial开发者_运维问答ization around. After work up s[详细]
2023-03-23 19:22 分类:问答Disabling Entity Framework's default value generation (Code First)
I have a column in the database that cannot be null, and I want to set it to have a default value in the database . The problem is that entity framework seems to create a d开发者_JS百科efault value it[详细]
2023-03-23 02:13 分类:问答EF CodeFirst create non-clustered primary key index
I\'m using EF 4.1 CodeFirst to create my DB. It seems that EF is creating all primary keys with clustered index, which is not optimal for us in one case(possibly more cases).[详细]
2023-03-22 20:53 分类:问答EF Code First Mapping Multiple Classes to One Table
I\'ve got quite a complex database that I want to map to code first but I am having a problem with a table that needs to be split out into two separate classes.[详细]
2023-03-22 20:28 分类:问答EF 4.1 Code First - What pattern should I use?
I am learning EF Code First and I am struggling a bit with what patterns to use in my application.I have read many conflicting sugestions and arugments some stating you should use the Repository patte[详细]
2023-03-22 17:46 分类:问答How to stream images (or any BLOB) in OData Service using Code First?
What I\'m trying to accomplish is: Have a Client Entity, or a Product Entity streaming related images, and be able to upload/update images using an OData Service.[详细]
2023-03-22 12:33 分类:问答MS Entity Framework 4.1 - Maintain data across restructuring
I am using the Code First approach to manage the EF. However开发者_运维百科 all the examples I have seen don\'t seem to allow you to use EF where you are able to make changes to the DB schema and pres[详细]
2023-03-22 07:47 分类:问答EF - Saving a new entity with linked existing entities creating duplicates
public class Car { public string SomeProperty { get; set; } public Manufacturer Manufacturer { get; set; }[详细]
2023-03-22 01:29 分类:问答