Пример #1
0
 /// <summary>
 /// Create a new Audit object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="date">Initial value of the Date property.</param>
 /// <param name="content">Initial value of the Content property.</param>
 /// <param name="username">Initial value of the Username property.</param>
 /// <param name="createdDate">Initial value of the CreatedDate property.</param>
 /// <param name="rowVersion">Initial value of the RowVersion property.</param>
 public static Audit CreateAudit(global::System.Int32 id, global::System.DateTime date, global::System.String content, global::System.String username, global::System.DateTime createdDate, global::System.Byte[] rowVersion)
 {
     Audit audit = new Audit();
     audit.Id = id;
     audit.Date = date;
     audit.Content = content;
     audit.Username = username;
     audit.CreatedDate = createdDate;
     audit.RowVersion = rowVersion;
     return audit;
 }
Пример #2
0
 /// <summary>
 /// Deprecated Method for adding a new object to the Audits EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToAudits(Audit audit)
 {
     base.AddObject("Audits", audit);
 }