摘要: ef开发中会经常使用联表查询,有两种方式: 如果表中建立了外键关系,可以使用include方法,如下: var structure = McDB.DBContext.Com_Structure.Select().Include(m => m.Com_StructureType).Where(m => 阅读全文
posted @ 2017-03-31 13:44 飞刀软件 阅读(877) 评论(0) 推荐(0) 编辑
摘要: 在orm开发中也会用到存储过程,案例如下: Create proc [dbo].[proc_GetCompanyStructureByDepartStructureId] @Com_StructureId uniqueidentifierASBEGIN declare @structureType 阅读全文
posted @ 2017-03-31 12:18 飞刀软件 阅读(948) 评论(0) 推荐(0) 编辑