Пример #1
0
        public static int Insert(Zippy.Data.IDalProvider db, ExtProperty entity)
        {
            int rtn = db.Insert(entity);

            return(rtn);
        }
Пример #2
0
 public static int Update(Zippy.Data.IDalProvider db, ExtProperty entity)
 {
     return(db.Update(entity));
 }
Пример #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)));
 }
Пример #4
0
        public static ExtProperty Create(Zippy.Data.IDalProvider db, Int64 _PropertyID)
        {
            ExtProperty rtn = db.FindUnique <ExtProperty>(_PropertyID);

            return(rtn);
        }
Пример #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>());
 }
Пример #6
0
 public static int Insert(Zippy.Data.IDalProvider db, ExtProperty entity)
 {
     int rtn = db.Insert(entity);
     return rtn;
 }
Пример #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));
 }
Пример #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>();
 }
Пример #9
0
 public static int Update(Zippy.Data.IDalProvider db, ExtProperty entity)
 {
     return db.Update(entity);
 }