你的位置:首页 > 软件开发 > ASP.net > 使用Fluent API进行实体映射【Code

使用Fluent API进行实体映射【Code

发布时间:2015-12-12 23:00:55
现在,我们来学习怎么使用Fluent API来配置实体。一。配置默认的数据表SchemaStudent实体using System;using System.Collections.Generic;using System.Linq;using System.Text;using ...

使用Fluent API进行实体映射【Code

现在,我们来学习怎么使用Fluent API来配置实体。

一。配置默认的数据表Schema

Student实体

using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;namespace EF4{  public class Student  {    public int StudentID { get; set; }    public string StudentName { get; set; }    public int StuaentAge { get; set; }    public string StudentEmail { get; set; }    public Standard Standard { get; set; }  }}

 

海外公司注册、海外银行开户、跨境平台代入驻、VAT、EPR等知识和在线办理:https://www.xlkjsw.com

原标题:使用Fluent API进行实体映射【Code

关键词:映射

*特别声明:以上内容来自于网络收集,著作权属原作者所有,如有侵权,请联系我们: admin#shaoqun.com (#换成@)。