/// <summary> /// Deprecated Method for adding a new object to the ProfileSettings EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToProfileSettings(ProfileSetting profileSetting) { base.AddObject("ProfileSettings", profileSetting); }
/// <summary> /// Create a new ProfileSetting object. /// </summary> /// <param name="userId">Initial value of the UserId property.</param> /// <param name="captureCalories">Initial value of the CaptureCalories property.</param> /// <param name="captureFat">Initial value of the CaptureFat property.</param> /// <param name="captureCarbs">Initial value of the CaptureCarbs property.</param> /// <param name="captureProtein">Initial value of the CaptureProtein property.</param> public static ProfileSetting CreateProfileSetting(global::System.Guid userId, global::System.Boolean captureCalories, global::System.Boolean captureFat, global::System.Boolean captureCarbs, global::System.Boolean captureProtein) { ProfileSetting profileSetting = new ProfileSetting(); profileSetting.UserId = userId; profileSetting.CaptureCalories = captureCalories; profileSetting.CaptureFat = captureFat; profileSetting.CaptureCarbs = captureCarbs; profileSetting.CaptureProtein = captureProtein; return profileSetting; }