public void Update(VideoAlbum obj, out OperationResult operationResult) { lock (Lock) { if (obj == null) { operationResult = new OperationResult { Type = OperationResult.ResultType.Warning }; return; } Common.Instance.Update (obj, objs => objs.VideoAlbumId == obj.VideoAlbumId && objs.LanguageId == obj.LanguageId, out operationResult); } }
/// <summary> /// Create a new VideoAlbum object. /// </summary> /// <param name="videoAlbumId">Initial value of the VideoAlbumId property.</param> public static VideoAlbum CreateVideoAlbum(global::System.Guid videoAlbumId) { VideoAlbum videoAlbum = new VideoAlbum(); videoAlbum.VideoAlbumId = videoAlbumId; return videoAlbum; }
public void Insert(VideoAlbum obj, out OperationResult operationResult) { lock (Lock) { if (obj == null) { operationResult = new OperationResult { Type = OperationResult.ResultType.Warning }; } else { Common.Instance.Insert(obj, out operationResult); } } }
/// <summary> /// Deprecated Method for adding a new object to the VideoAlbum EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToVideoAlbum(VideoAlbum videoAlbum) { base.AddObject("VideoAlbum", videoAlbum); }