public static int Insert(Zippy.Data.IDalProvider db, ExtProperty entity) { int rtn = db.Insert(entity); return(rtn); }
public static int Update(Zippy.Data.IDalProvider db, ExtProperty entity) { return(db.Update(entity)); }
/// <summary> /// 表示 [模板] 对应的实体 /// </summary> public static PropertyTemplate GetTemplateIDEntity(Zippy.Data.IDalProvider db, ExtProperty entity) { return(db.FindUnique <PropertyTemplate>("TemplateID=@TemplateID", db.CreateParameter("TemplateID", entity.TemplateID))); }
public static ExtProperty Create(Zippy.Data.IDalProvider db, Int64 _PropertyID) { ExtProperty rtn = db.FindUnique <ExtProperty>(_PropertyID); return(rtn); }
/// <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>()); }
public static int Insert(Zippy.Data.IDalProvider db, ExtProperty entity) { int rtn = db.Insert(entity); return rtn; }
/// <summary> /// 表示 [模板] 对应的实体 /// </summary> public static PropertyTemplate GetTemplateIDEntity(Zippy.Data.IDalProvider db, ExtProperty entity) { return db.FindUnique<PropertyTemplate>("TemplateID=@TemplateID", db.CreateParameter("TemplateID", entity.TemplateID)); }
/// <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>(); }
public static int Update(Zippy.Data.IDalProvider db, ExtProperty entity) { return db.Update(entity); }