2014年11月4日

Entity创建一对一关系

摘要: Area类 public virtual User User { get; set; }User类 public virtual Area Area { get; set; }Context类 modelBuilder.Entity() //巡检区域-区域负责人 .HasOptional(a =... 阅读全文

posted @ 2014-11-04 17:25 xihong 阅读(173) 评论(0) 推荐(0)

巡检频次信息

摘要: SELECT a.[ID] ,[Number] as '次数' ,b.Name as '单位' ,[Remark] FROM [AppBox].[dbo].[Freqs] as a,AppBox.dbo.Turns as b where a.Trun_ID = b.ID 阅读全文

posted @ 2014-11-04 17:18 xihong 阅读(219) 评论(0) 推荐(0)

导航