Esempio n. 1
0
        public static int Insert(Zippy.Data.IDalProvider db, ExtProperty entity)
        {
            int rtn = db.Insert(entity);

            return(rtn);
        }
Esempio n. 2
0
 public static int Update(Zippy.Data.IDalProvider db, ExtProperty entity)
 {
     return(db.Update(entity));
 }
Esempio n. 3
0
 /// <summary>
 /// 表示 [模板] 对应的实体
 /// </summary>
 public static PropertyTemplate GetTemplateIDEntity(Zippy.Data.IDalProvider db, ExtProperty entity)
 {
     return(db.FindUnique <PropertyTemplate>("TemplateID=@TemplateID", db.CreateParameter("TemplateID", entity.TemplateID)));
 }
Esempio n. 4
0
        public static ExtProperty Create(Zippy.Data.IDalProvider db, Int64 _PropertyID)
        {
            ExtProperty rtn = db.FindUnique <ExtProperty>(_PropertyID);

            return(rtn);
        }
Esempio n. 5
0
 /// <summary>
 /// 获取 [扩展属性模板 的 属性] 的 [产品扩展属性] 集合
 /// </summary>
 public static List <Z01ProductExtValue> GetPropertyID_Z01ProductExtValues(Zippy.Data.IDalProvider db, ExtProperty entity)
 {
     if (entity.PropertyID.HasValue)
     {
         return(db.Take <Z01ProductExtValue>("PropertyID=@PropertyID", db.CreateParameter("PropertyID", entity.PropertyID)));
     }
     return(new List <Z01ProductExtValue>());
 }
Esempio n. 6
0
 public static int Insert(Zippy.Data.IDalProvider db, ExtProperty entity)
 {
     int rtn = db.Insert(entity);
     return rtn;
 }
Esempio n. 7
0
 /// <summary>
 /// 表示 [模板] 对应的实体
 /// </summary>
 public static PropertyTemplate GetTemplateIDEntity(Zippy.Data.IDalProvider db, ExtProperty entity)
 {
     return db.FindUnique<PropertyTemplate>("TemplateID=@TemplateID", db.CreateParameter("TemplateID", entity.TemplateID));
 }
Esempio n. 8
0
 /// <summary>
 /// 获取 [扩展属性模板 的 属性] 的 [产品扩展属性] 集合
 /// </summary>
 public static List<Z01ProductExtValue> GetPropertyID_Z01ProductExtValues(Zippy.Data.IDalProvider db, ExtProperty entity)
 {
     if (entity.PropertyID.HasValue)
            return db.Take<Z01ProductExtValue>("PropertyID=@PropertyID", db.CreateParameter("PropertyID", entity.PropertyID));
     return new List<Z01ProductExtValue>();
 }
Esempio n. 9
0
 public static int Update(Zippy.Data.IDalProvider db, ExtProperty entity)
 {
     return db.Update(entity);
 }