/// <summary> /// Deprecated Method for adding a new object to the UserImage EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToUserImage(UserImage userImage) { base.AddObject("UserImage", userImage); }
/// <summary> /// Create a new UserImage object. /// </summary> /// <param name="fileId">Initial value of the FileId property.</param> /// <param name="userID">Initial value of the UserID property.</param> /// <param name="fileName">Initial value of the FileName property.</param> /// <param name="fileContent">Initial value of the FileContent property.</param> /// <param name="contentType">Initial value of the ContentType property.</param> /// <param name="contentLength">Initial value of the ContentLength property.</param> public static UserImage CreateUserImage(global::System.Int32 fileId, global::System.Int32 userID, global::System.String fileName, global::System.Byte[] fileContent, global::System.String contentType, global::System.Int32 contentLength) { UserImage userImage = new UserImage(); userImage.FileId = fileId; userImage.UserID = userID; userImage.FileName = fileName; userImage.FileContent = fileContent; userImage.ContentType = contentType; userImage.ContentLength = contentLength; return userImage; }