/// <summary> /// Create a new File object. /// </summary> /// <param name="file_id">Initial value of the file_id property.</param> /// <param name="dir_id">Initial value of the dir_id property.</param> /// <param name="type_id">Initial value of the type_id property.</param> /// <param name="content_id">Initial value of the content_id property.</param> /// <param name="file_name">Initial value of the file_name property.</param> /// <param name="file_size">Initial value of the file_size property.</param> /// <param name="file_hash">Initial value of the file_hash property.</param> /// <param name="file_uploaded">Initial value of the file_uploaded property.</param> /// <param name="file_modified">Initial value of the file_modified property.</param> public static File CreateFile(global::System.Int32 file_id, global::System.Int32 dir_id, global::System.Int32 type_id, global::System.Int32 content_id, global::System.String file_name, global::System.Int64 file_size, global::System.String file_hash, global::System.DateTime file_uploaded, global::System.DateTime file_modified) { File file = new File(); file.file_id = file_id; file.dir_id = dir_id; file.type_id = type_id; file.content_id = content_id; file.file_name = file_name; file.file_size = file_size; file.file_hash = file_hash; file.file_uploaded = file_uploaded; file.file_modified = file_modified; 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); }