/// <summary> /// Create a new File object. /// </summary> /// <param name="fileID">Initial value of the FileID property.</param> /// <param name="userID">Initial value of the UserID 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 File CreateFile(global::System.Int32 fileID, global::System.Int32 userID, global::System.Byte[] fileContent, global::System.String contentType, global::System.Int32 contentLength) { File file = new File(); file.FileID = fileID; file.UserID = userID; file.FileContent = fileContent; file.ContentType = contentType; file.ContentLength = contentLength; return file; }
/// <summary> /// Deprecated Method for adding a new object to the Files EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToFiles(File file) { base.AddObject("Files", file); }