Esempio n. 1
0
 /// <summary>
 /// 用于向 WorkModuls EntitySet 添加新对象的方法,已弃用。请考虑改用关联的 ObjectSet&lt;T&gt; 属性的 .Add 方法。
 /// </summary>
 public void AddToWorkModuls(WorkModul workModul)
 {
     base.AddObject("WorkModuls", workModul);
 }
Esempio n. 2
0
 /// <summary>
 /// 创建新的 WorkModul 对象。
 /// </summary>
 /// <param name="id">Id 属性的初始值。</param>
 /// <param name="name">Name 属性的初始值。</param>
 /// <param name="content">Content 属性的初始值。</param>
 /// <param name="activityType">ActivityType 属性的初始值。</param>
 public static WorkModul CreateWorkModul(global::System.Int32 id, global::System.String name, global::System.String content, global::System.String activityType)
 {
     WorkModul workModul = new WorkModul();
     workModul.Id = id;
     workModul.Name = name;
     workModul.Content = content;
     workModul.ActivityType = activityType;
     return workModul;
 }