コード例 #1
0
 /// <summary>
 /// Create a new PosLog object.
 /// </summary>
 /// <param name="id">Initial value of Id.</param>
 /// <param name="date">Initial value of Date.</param>
 /// <param name="thread">Initial value of Thread.</param>
 /// <param name="level">Initial value of Level.</param>
 /// <param name="logger">Initial value of Logger.</param>
 /// <param name="message">Initial value of Message.</param>
 public static PosLog CreatePosLog(decimal id, global::System.DateTime date, string thread, string level, string logger, string message)
 {
     PosLog posLog = new PosLog();
     posLog.Id = id;
     posLog.Date = date;
     posLog.Thread = thread;
     posLog.Level = level;
     posLog.Logger = logger;
     posLog.Message = message;
     return posLog;
 }
コード例 #2
0
 /// <summary>
 /// Deprecated Method for adding a new object to the PosLogs EntitySet.
 /// </summary>
 public void AddToPosLogs(PosLog posLog)
 {
     base.AddObject("PosLogs", posLog);
 }