/// <summary> /// 用于向 SystemCategories EntitySet 添加新对象的方法,已弃用。请考虑改用关联的 ObjectSet<T> 属性的 .Add 方法。 /// </summary> public void AddToSystemCategories(SystemCategory systemCategory) { base.AddObject("SystemCategories", systemCategory); }
/// <summary> /// 创建新的 SystemCategory 对象。 /// </summary> /// <param name="sid">Sid 属性的初始值。</param> public static SystemCategory CreateSystemCategory(global::System.Int64 sid) { SystemCategory systemCategory = new SystemCategory(); systemCategory.Sid = sid; return systemCategory; }