/// <summary> /// Create a new File object. /// </summary> /// <param name="id">Initial value of the ID property.</param> /// <param name="fileName">Initial value of the FileName property.</param> /// <param name="fileLocation">Initial value of the FileLocation property.</param> /// <param name="fileType">Initial value of the FileType property.</param> /// <param name="fileUse">Initial value of the FileUse property.</param> /// <param name="mD5Sum">Initial value of the MD5Sum property.</param> /// <param name="parentId">Initial value of the ParentId property.</param> /// <param name="parentType">Initial value of the ParentType property.</param> /// <param name="thumbNailFile">Initial value of the ThumbNailFile property.</param> /// <param name="createDate">Initial value of the CreateDate property.</param> /// <param name="createdByUserID">Initial value of the CreatedByUserID property.</param> /// <param name="active">Initial value of the Active property.</param> public static File CreateFile(global::System.Guid id, global::System.String fileName, global::System.String fileLocation, global::System.String fileType, global::System.Int32 fileUse, global::System.String mD5Sum, global::System.Guid parentId, global::System.String parentType, global::System.String thumbNailFile, global::System.DateTime createDate, global::System.Guid createdByUserID, global::System.Boolean active) { File file = new File(); file.ID = id; file.FileName = fileName; file.FileLocation = fileLocation; file.FileType = fileType; file.FileUse = fileUse; file.MD5Sum = mD5Sum; file.ParentId = parentId; file.ParentType = parentType; file.ThumbNailFile = thumbNailFile; file.CreateDate = createDate; file.CreatedByUserID = createdByUserID; file.Active = active; 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); }