当前位置: 首页>>代码示例>>C#>>正文


C# Zippy.FindUnique方法代码示例

本文整理汇总了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;
 }
开发者ID:honj51,项目名称:EAP,代码行数:7,代码来源:Z10OrderHelper.cs

示例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;
 }
开发者ID:honj51,项目名称:EAP,代码行数:18,代码来源:Order.cs

示例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));
 }
开发者ID:honj51,项目名称:EAP,代码行数:7,代码来源:Z01ProductInCategoryHelper.cs

示例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));
 }
开发者ID:honj51,项目名称:EAP,代码行数:7,代码来源:Z01UserInfoHelper.cs

示例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));
 }
开发者ID:honj51,项目名称:EAP,代码行数:7,代码来源:PermissionHelper.cs

示例6: Create

 public static Z01FinancialCategory Create(Zippy.Data.IDalProvider db, Int64 _CategoryID)
 {
     Z01FinancialCategory rtn =  db.FindUnique<Z01FinancialCategory>(_CategoryID);
     return rtn;
 }
开发者ID:honj51,项目名称:EAP,代码行数:5,代码来源:Z01FinancialCategoryHelper.cs

示例7: Create

 public static Z01Unit Create(Zippy.Data.IDalProvider db, Int32 _UnitID)
 {
     Z01Unit rtn =  db.FindUnique<Z01Unit>(_UnitID);
     return rtn;
 }
开发者ID:honj51,项目名称:EAP,代码行数:5,代码来源:Z01UnitHelper.cs

示例8: Create

 public static Z10Order Create(Zippy.Data.IDalProvider db, Int64 _OrderID)
 {
     Z10Order rtn =  db.FindUnique<Z10Order>(_OrderID);
     return rtn;
 }
开发者ID:honj51,项目名称:EAP,代码行数:5,代码来源:Z10OrderHelper.cs

示例9: Create

 public static Application Create(Zippy.Data.IDalProvider db, Guid _ApplicationID)
 {
     Application rtn =  db.FindUnique<Application>(_ApplicationID);
     return rtn;
 }
开发者ID:honj51,项目名称:EAP,代码行数:5,代码来源:ApplicationHelper.cs

示例10: Create

 public static Z01PaperTemplate Create(Zippy.Data.IDalProvider db, Int64 _TemplateID)
 {
     Z01PaperTemplate rtn =  db.FindUnique<Z01PaperTemplate>(_TemplateID);
     return rtn;
 }
开发者ID:honj51,项目名称:EAP,代码行数:5,代码来源:Z01PaperTemplateHelper.cs

示例11: Create

 public static Z10DepotFlow Create(Zippy.Data.IDalProvider db, Int64 _FlowID)
 {
     Z10DepotFlow rtn =  db.FindUnique<Z10DepotFlow>(_FlowID);
     return rtn;
 }
开发者ID:honj51,项目名称:EAP,代码行数:5,代码来源:Z10DepotFlowHelper.cs

示例12: Create

 public static Tenant Create(Zippy.Data.IDalProvider db, Guid _TenantID)
 {
     Tenant rtn =  db.FindUnique<Tenant>(_TenantID);
     return rtn;
 }
开发者ID:honj51,项目名称:EAP,代码行数:5,代码来源:TenantHelper.cs

示例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));
 }
开发者ID:honj51,项目名称:EAP,代码行数:7,代码来源:Z01CustomerInCategoryHelper.cs

示例14: Create

 public static Z01CustomerInCategory Create(Zippy.Data.IDalProvider db, Int64 _CICID)
 {
     Z01CustomerInCategory rtn =  db.FindUnique<Z01CustomerInCategory>(_CICID);
     return rtn;
 }
开发者ID:honj51,项目名称:EAP,代码行数:5,代码来源:Z01CustomerInCategoryHelper.cs

示例15: Create

 public static Group Create(Zippy.Data.IDalProvider db, Guid _GroupID)
 {
     Group rtn = db.FindUnique<Group>(_GroupID);
     return rtn;
 }
开发者ID:honj51,项目名称:EAP,代码行数:5,代码来源:GroupHelper.cs


注:本文中的Zippy.FindUnique方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。