本文整理汇总了C#中GMS.Project.DAL.ProjectDbContext.Find方法的典型用法代码示例。如果您正苦于以下问题:C# ProjectDbContext.Find方法的具体用法?C# ProjectDbContext.Find怎么用?C# ProjectDbContext.Find使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类GMS.Project.DAL.ProjectDbContext
的用法示例。
在下文中一共展示了ProjectDbContext.Find方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: GetProjectBasedata
public ProjectBasedata GetProjectBasedata(int id)
{
using (var dbContext = new ProjectDbContext())
{
return dbContext.Find<ProjectBasedata>(id);
}
}
示例2: GetBudget
public BudgetInfo GetBudget(int id)
{
using (var dbContext = new ProjectDbContext())
{
return dbContext.Find<BudgetInfo>(id);
}
}
示例3: GetInsOverhead
public InsOverhead GetInsOverhead(int id)
{
using (var dbContext = new ProjectDbContext())
{
var model = dbContext.Find<InsOverhead>(id);
model.ProjectBasedata = GetProjectBasedata(model.ProjectBasedataID);
return model;
//return dbContext.Find<InsOverhead>(id);
}
}
示例4: GetInsMachineryCost
public InsMachineryCost GetInsMachineryCost(int id)
{
using (var dbContext = new ProjectDbContext())
{
var model = dbContext.Find<InsMachineryCost>(id);
model.ProjectBasedata = GetProjectBasedata(model.ProjectBasedataID);
return model;
//return dbContext.Find<InsMachineryCost>(id);
}
}
示例5: GetInsLaborCost
public InsLaborCost GetInsLaborCost(int id)
{
using (var dbContext = new ProjectDbContext())
{
//dbContext.Find.InsLaborCosts.Where((d => d.ID == id);
//var q = from L in dbContext.InsLaborCosts
// join P in dbContext.ProjectBasedatas on L.ProjectBasedataID equals P.ID
// //orderby n.AddTime descending
// select L;
//return q.ToList();
var model = dbContext.Find<InsLaborCost>(id);
model.ProjectBasedata = GetProjectBasedata(model.ProjectBasedataID);
return model;
}
}
示例6: GetAccounting
public Accounting GetAccounting(int id)
{
using (var dbContext = new ProjectDbContext())
{
return dbContext.Find<Accounting>(id);
}
}
示例7: GetOverhead
public Overhead GetOverhead(int id)
{
using (var dbContext = new ProjectDbContext())
{
return dbContext.Find<Overhead>(id);
}
}
示例8: GetIncome
//-----------------------------------财务管理--------------------------------------------
#region Incomes CURD
public Income GetIncome(int id)
{
using (var dbContext = new ProjectDbContext())
{
return dbContext.Find<Income>(id);
}
}
示例9: GetMachineryCost
public MachineryCost GetMachineryCost(int id)
{
using (var dbContext = new ProjectDbContext())
{
return dbContext.Find<MachineryCost>(id);
}
}
示例10: GetLaborCost
public LaborCost GetLaborCost(int id)
{
using (var dbContext = new ProjectDbContext())
{
return dbContext.Find<LaborCost>(id);
}
}
示例11: GetOfficeCtrl
public OfficeCtrl GetOfficeCtrl(int id)
{
using (var dbContext = new ProjectDbContext())
{
return dbContext.Find<OfficeCtrl>(id);
}
}
示例12: GetProjectCtrl
public ProjectCtrl GetProjectCtrl(int id)
{
using (var dbContext = new ProjectDbContext())
{
return dbContext.Find<ProjectCtrl>(id);
}
}
示例13: GetPayables
public Payables GetPayables(int id)
{
using (var dbContext = new ProjectDbContext())
{
return dbContext.Find<Payables>(id);
}
}
示例14: GetFile
//--------------------------资产管理-----------------------------------
#region Files CURD
public Files GetFile(int id)
{
using (var dbContext = new ProjectDbContext())
{
return dbContext.Find<Files>(id);
}
}
示例15: GetMeasure
public Measure GetMeasure(int id)
{
using (var dbContext = new ProjectDbContext())
{
return dbContext.Find<Measure>(id);
}
}