/// <summary> /// 用于向 sns_privacy_index EntitySet 添加新对象的方法,已弃用。请考虑改用关联的 ObjectSet<T> 属性的 .Add 方法。 /// </summary> public void AddTosns_privacy_index(sns_privacy_index sns_privacy_index) { base.AddObject("sns_privacy_index", sns_privacy_index); }
/// <summary> /// 创建新的 sns_privacy_index 对象。 /// </summary> /// <param name="id">id 属性的初始值。</param> /// <param name="level">level 属性的初始值。</param> /// <param name="black">black 属性的初始值。</param> /// <param name="white">white 属性的初始值。</param> /// <param name="type">type 属性的初始值。</param> public static sns_privacy_index Createsns_privacy_index(global::System.Int32 id, global::System.Int16 level, global::System.Int16 black, global::System.Int16 white, global::System.String type) { sns_privacy_index sns_privacy_index = new sns_privacy_index(); sns_privacy_index.id = id; sns_privacy_index.level = level; sns_privacy_index.black = black; sns_privacy_index.white = white; sns_privacy_index.type = type; return sns_privacy_index; }