Ejemplo n.º 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);
 }
Ejemplo n.º 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();
        }
Ejemplo n.º 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;
 }