/// <summary> /// Create a new UserPrivacySetting object. /// </summary> /// <param name="id">Initial value of the Id property.</param> /// <param name="userId">Initial value of the UserId property.</param> /// <param name="privacySettingName">Initial value of the PrivacySettingName property.</param> public static UserPrivacySetting CreateUserPrivacySetting(global::System.Int32 id, global::System.Int32 userId, global::System.String privacySettingName) { UserPrivacySetting userPrivacySetting = new UserPrivacySetting(); userPrivacySetting.Id = id; userPrivacySetting.UserId = userId; userPrivacySetting.PrivacySettingName = privacySettingName; return userPrivacySetting; }
/// <summary> /// Deprecated Method for adding a new object to the UserPrivacySettings EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToUserPrivacySettings(UserPrivacySetting userPrivacySetting) { base.AddObject("UserPrivacySettings", userPrivacySetting); }