示例#1
0
 // Default contructor that set entity to field
 public AttachmentFileModel(AttachmentFile attachmentfile)
 {
     this._attachment_file = attachmentfile;
     this._id = attachmentfile.Id;
     this._name = attachmentfile.Name;
     this._path_file = attachmentfile.PathFile;
     this._originalAttachmentFile = attachmentfile.DeepClone();
 }
示例#2
0
 /// <summary>
 /// Deprecated Method for adding a new object to the AttachmentFile EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToAttachmentFile(AttachmentFile attachmentFile)
 {
     base.AddObject("AttachmentFile", attachmentFile);
 }
示例#3
0
 /// <summary>
 /// Create a new AttachmentFile object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 public static AttachmentFile CreateAttachmentFile(global::System.Int32 id)
 {
     AttachmentFile attachmentFile = new AttachmentFile();
     attachmentFile.Id = id;
     return attachmentFile;
 }
 // Delete a existed AttachmentFile
 public void DeleteAttachmentFile(AttachmentFile _attachmentFile)
 {
     unitOfWork.Delete<AttachmentFile>(_attachmentFile);
 }
 // Add a new AttachmentFile
 public AttachmentFile AddAttachmentFile(AttachmentFile _attachmentFile)
 {
     unitOfWork.Add<AttachmentFile>(_attachmentFile);
     return _attachmentFile;
 }
 // Update a existed AttachmentFile
 public AttachmentFile UpdateAttachmentFile(AttachmentFile _attachmentFile)
 {
     unitOfWork.Update<AttachmentFile>(_attachmentFile);
     return _attachmentFile;
 }
 // Refresh an existed AttachmentFile
 public AttachmentFile RefeshAttachmentFile(AttachmentFile _attachmentFile)
 {
     unitOfWork.Refresh<AttachmentFile>(_attachmentFile);
     return _attachmentFile;
 }
示例#8
0
 // Default contructor
 public AttachmentFileModel()
 {
     this.IsNewItem = true;
     this._attachment_file = new AttachmentFile();
 }