예제 #1
0
 /// <summary>
 /// Deprecated Method for adding a new object to the logentries EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddTologentries(logentries logentries)
 {
     base.AddObject("logentries", logentries);
 }
예제 #2
0
        private void WriteLog(string message, string fromFunction)
        {
            logentries logEntry = new logentries();
            logEntry.Message = message;
            logEntry.Function = fromFunction;
            logEntry.Application = "WonderService";
            logEntry.CreatedDate = DateTime.Now;

            wonderDB.logentries.AddObject(logEntry);
            wonderDB.SaveChanges();
        }
예제 #3
0
 /// <summary>
 /// Create a new logentries object.
 /// </summary>
 /// <param name="logID">Initial value of the LogID property.</param>
 public static logentries Createlogentries(global::System.Int32 logID)
 {
     logentries logentries = new logentries();
     logentries.LogID = logID;
     return logentries;
 }