本文整理汇总了C#中Zippy.FindUnique方法的典型用法代码示例。如果您正苦于以下问题:C# Zippy.FindUnique方法的具体用法?C# Zippy.FindUnique怎么用?C# Zippy.FindUnique使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Zippy
的用法示例。
在下文中一共展示了Zippy.FindUnique方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: GetCustomer
public static Z01Beetle.Entity.Z01Customer GetCustomer(this Z10Order order, Zippy.Data.IDalProvider db)
{
Z01Beetle.Entity.Z01Customer rtn = db.FindUnique<Z01Beetle.Entity.Z01Customer>("[email protected]", db.CreateParameter("CustomerID", order.CustomerID));
if (rtn == null)
rtn = new Z01Beetle.Entity.Z01Customer();
return rtn;
}
示例2: LoadFromDB
/// <summary>
/// 从数据库中载入订单
/// </summary>
/// <param name="orderID"></param>
/// <param name="tenantID"></param>
/// <param name="db"></param>
/// <returns></returns>
public static Order LoadFromDB(long orderID, Guid tenantID, Zippy.Data.IDalProvider db)
{
Order order = new Order();
order.Z10Order = db.FindUnique<Z10Order>("[email protected] and [email protected]",
db.CreateParameter("OrderID", orderID),
db.CreateParameter("TenantID", tenantID));
order.Items = db.Take<Z10OrderItem>("[email protected] and [email protected]",
db.CreateParameter("OrderID", orderID),
db.CreateParameter("TenantID", tenantID));
return order;
}
示例3: GetCategoryIDEntity
/// <summary>
/// 表示 [分类] 对应的实体
/// </summary>
public static Z01ProductCategory GetCategoryIDEntity(Zippy.Data.IDalProvider db, Z01ProductInCategory entity)
{
return db.FindUnique<Z01ProductCategory>("[email protected]", db.CreateParameter("CategoryID", entity.CategoryID));
}
示例4: GetTitleIDEntity
/// <summary>
/// 表示 [头衔/职务] 对应的实体
/// </summary>
public static Z01Title GetTitleIDEntity(Zippy.Data.IDalProvider db, Z01UserInfo entity)
{
return db.FindUnique<Z01Title>("[email protected]", db.CreateParameter("TitleID", entity.TitleID));
}
示例5: GetParentIDEntity
/// <summary>
/// 表示 [父权限] 对应的实体
/// </summary>
public static Permission GetParentIDEntity(Zippy.Data.IDalProvider db, Permission entity)
{
return db.FindUnique<Permission>("[email protected]", db.CreateParameter("PermissionID", entity.ParentID));
}
示例6: Create
public static Z01FinancialCategory Create(Zippy.Data.IDalProvider db, Int64 _CategoryID)
{
Z01FinancialCategory rtn = db.FindUnique<Z01FinancialCategory>(_CategoryID);
return rtn;
}
示例7: Create
public static Z01Unit Create(Zippy.Data.IDalProvider db, Int32 _UnitID)
{
Z01Unit rtn = db.FindUnique<Z01Unit>(_UnitID);
return rtn;
}
示例8: Create
public static Z10Order Create(Zippy.Data.IDalProvider db, Int64 _OrderID)
{
Z10Order rtn = db.FindUnique<Z10Order>(_OrderID);
return rtn;
}
示例9: Create
public static Application Create(Zippy.Data.IDalProvider db, Guid _ApplicationID)
{
Application rtn = db.FindUnique<Application>(_ApplicationID);
return rtn;
}
示例10: Create
public static Z01PaperTemplate Create(Zippy.Data.IDalProvider db, Int64 _TemplateID)
{
Z01PaperTemplate rtn = db.FindUnique<Z01PaperTemplate>(_TemplateID);
return rtn;
}
示例11: Create
public static Z10DepotFlow Create(Zippy.Data.IDalProvider db, Int64 _FlowID)
{
Z10DepotFlow rtn = db.FindUnique<Z10DepotFlow>(_FlowID);
return rtn;
}
示例12: Create
public static Tenant Create(Zippy.Data.IDalProvider db, Guid _TenantID)
{
Tenant rtn = db.FindUnique<Tenant>(_TenantID);
return rtn;
}
示例13: GetProductIDEntity
/// <summary>
/// 表示 [产品] 对应的实体
/// </summary>
public static Z01Product GetProductIDEntity(Zippy.Data.IDalProvider db, Z01CustomerInCategory entity)
{
return db.FindUnique<Z01Product>("[email protected]", db.CreateParameter("CustomerID", entity.CustomerID));
}
示例14: Create
public static Z01CustomerInCategory Create(Zippy.Data.IDalProvider db, Int64 _CICID)
{
Z01CustomerInCategory rtn = db.FindUnique<Z01CustomerInCategory>(_CICID);
return rtn;
}
示例15: Create
public static Group Create(Zippy.Data.IDalProvider db, Guid _GroupID)
{
Group rtn = db.FindUnique<Group>(_GroupID);
return rtn;
}