Python
Java
PHP
IOS
Android
Nodejs
JavaScript
Html5
Windows
Ubuntu
Linux
EF 5 Code First 迁移批量 SQL 数据播种
我将 EF5 与 MVC4 结合使用 问题是我的数据库中有大量数据 我已经从旧数据库导入了这些数据 我想在模型更改时加载该数据的种子 我的问题是如何播种数据库中已有的大量数据 internal sealed class Configurat
EntityFramework
efcodefirst
entityframeworkmigrations
手动添加迁移?
我首先在项目中使用实体框架代码 并且所有表都已在不久前创建 修改 现在我需要向表添加唯一约束 我想创建一个迁移 其中将包含以下行Up 方法 并且有模型类没有变化 CreateIndex TableName new Column1 true
c
sqlserver
EntityFramework
efcodefirst
entityframework6
EF4.3.1 中的 MaxLength 属性
The type System ComponentModel DataAnnotations MaxLengthAttribute exists in both path packages EntityFramework 4 3 1 lib
ASPNETMVC
EntityFramework
efcodefirst
net45
如何使用 EF4 Code First 对同一个表进行多对多操作
我有这个架构 create table Person id int identity primary key name nvarchar 30 create table PersonPersons PersonId references P
如何在运行时在 DatabaseGeneeratedOption.Identity、Compulated 和 None 之间切换,而不必生成空的 DbMigrations
我正在将旧数据库迁移到新数据库 我们需要主要通过实体框架代码优先来访问和 管理 听起来很矛盾 我们使用的是 MS SQL Server 2014 旧数据库包含一些表computed列 典型的 GUID 和 DateTime 内容 从技术上讲
一个或零到一实体框架代码优先 FluentApi
我需要创建 Fluentapi 一对一或零对一引用 并在两个实体上都具有导航属性 实体二应包含存储外键的简单属性 实体 ID public class EntityOne public int Id get set public Entit
c
EntityFramework
efcodefirst
effluentapi
如何解决警告:元素“entityFramework”具有无效的子元素“providers”。预期可能元素的列表:“上下文”
我正在尝试使用 EF 不同的工作流程 昨天我做了一个新项目Entity Framework 6是第一个建议Nuget所以我决定尝试一下 而且这是一个非常小的项目 完全用于学习目的 所以我想尝试一下会是很好的经验EF 6因为我主要与Ef 5
EntityFramework
visualstudio2012
efcodefirst
entityframework6
如何在 ASP.NET MVC 3 中更新复杂模型
我正在尝试在单个视图中更新复杂模型 我正在使用 ASP NET MVC3 代码优先的实体框架 工作单元 通用存储库模式 但是当我尝试更新模型时 出现以下错误 发生参照完整性约束违规 定义参照约束的属性值在关系中的主体对象和从属对象之间不一致
ASPNETMVC
EntityFramework
efcodefirst
UnitOfWork
调用 savechanges 时实体框架复制
我首先使用entityframework 5代码 我有一个这样的模型 class Product public Product Fabrics new BindingList
c
EntityFramework
efcodefirst
在 WebAPI 控制器中序列化 EF Code First 5.0 数据时出错
我最初问过这个问题 如何解决 指定的包含路径无效 已回答 我的 Include 现在正在工作 但是 当序列化器尝试工作时 它很神奇 我收到以下错误 You must write an attribute type object after
efcodefirst
aspnetwebapi
entityframework5
如何使用实体框架代码优先自定义外键列名称
我有以下型号 public class Foo public int Id get set public IList
efcodefirst
为什么将 EntityState 设置为 Detached 会清空 List
类型的属性?
首先使用实体 框架代码 我有类似的东西 public class Foo public int Id get set public List
entityframework4
efcodefirst
如何在 Entity Framework Code First 中分离对象?
没有Detach object entity on the DbContext 我是否能够首先分离 EF 代码上的对象 这是一个选项 dbContext Entry entity State EntityState Detached
EntityFramework
entityframework41
efcodefirst
如何首先定义嵌套的识别关系实体框架代码
我目前首先在一个简单的测试应用程序中使用 EF5 代码来测试各种功能 我定义了两个实体之间的 识别关系 表示一对多链接 这里我定义了一个 PhotoCollection 它有很多子 Photo 实体 public class PhotoCo
efcodefirst
entityrelationship
onetomany
entityframework5
多次导航至同一实体
当有 2 个导航时 我遇到两个实体之间的连接问题 具体来说 我有以下课程 public class TableA public TableA ListBs new List
c
EntityFramework
efcodefirst
CodeFirst
在实体框架中添加与同一个表的第二个一对一关系
我正在做代码优先的实体框架设计 我有一个表 Account 它有一个属性 Supervisor public class Account public int Id get set public Account Supervisor get
EntityFramework
NetCore
efcodefirst
EntityFrameworkCore
EF Code First,将两个导航属性映射到同一对象类型
如果我有一个User具有以下属性的类 public Guid UserPreferenceId get set public virtual DefaultUserPreference UserPreference get set publ
EntityFramework
efcodefirst
entityframeworkmapping
实体框架 Code First 4.3 / 相关表的 LINQKit 谓词
我正在使用 Entity Framework 4 3 1 和 Code First 方法 另外 我正在使用 LinqKit 以便使用 PredicateBuilder 如果我有这样的表 位置 时区 多 1 我希望有这样的东西 Express
EntityFramework
entityframework4
linqtoentities
efcodefirst
模拟 DbContext.Set
()?
我们首先使用 EF 代码 并为我们的销售数据库提供数据上下文 此外 我们还有一个类位于数据上下文之上并执行一些基本的 CRUD 操作 例如 我们有以下函数 public static T Create
entityframework4
efcodefirst
«
1 ...
12
13
14
15
16
17
18