Exemplo n.º 1
0
 /// <summary>
 /// 创建新的 Sys_DiscountClass 对象。
 /// </summary>
 /// <param name="classID">ClassID 属性的初始值。</param>
 /// <param name="parentID">ParentID 属性的初始值。</param>
 /// <param name="classPath">ClassPath 属性的初始值。</param>
 /// <param name="classDepth">ClassDepth 属性的初始值。</param>
 /// <param name="classOrder">ClassOrder 属性的初始值。</param>
 /// <param name="demoID">DemoID 属性的初始值。</param>
 /// <param name="isDelete">IsDelete 属性的初始值。</param>
 public static Sys_DiscountClass CreateSys_DiscountClass(global::System.Int32 classID, global::System.Int32 parentID, global::System.String classPath, global::System.Int32 classDepth, global::System.Int32 classOrder, global::System.Int32 demoID, global::System.Int32 isDelete)
 {
     Sys_DiscountClass sys_DiscountClass = new Sys_DiscountClass();
     sys_DiscountClass.ClassID = classID;
     sys_DiscountClass.ParentID = parentID;
     sys_DiscountClass.ClassPath = classPath;
     sys_DiscountClass.ClassDepth = classDepth;
     sys_DiscountClass.ClassOrder = classOrder;
     sys_DiscountClass.DemoID = demoID;
     sys_DiscountClass.IsDelete = isDelete;
     return sys_DiscountClass;
 }
Exemplo n.º 2
0
 /// <summary>
 /// 用于向 Sys_DiscountClass EntitySet 添加新对象的方法,已弃用。请考虑改用关联的 ObjectSet&lt;T&gt; 属性的 .Add 方法。
 /// </summary>
 public void AddToSys_DiscountClass(Sys_DiscountClass sys_DiscountClass)
 {
     base.AddObject("Sys_DiscountClass", sys_DiscountClass);
 }