Пример #1
0
        public static void DeleteCommand(Command c)
        {
            SMLogger.LogThis("CommandType deleted: " + c.CommandText);

            var context = DataHandler.GetContext();
            context.Attach(c);
            context.Command.DeleteObject(c);
            context.SaveChanges();
        }
Пример #2
0
 partial void DeleteCommand(Command instance);
Пример #3
0
 partial void UpdateCommand(Command instance);
Пример #4
0
 partial void InsertCommand(Command instance);
Пример #5
0
		private void detach_Commands(Command entity)
		{
			this.SendPropertyChanging();
			entity.Tracker = null;
		}
Пример #6
0
		private void attach_Commands(Command entity)
		{
			this.SendPropertyChanging();
			entity.Tracker = this;
		}
Пример #7
0
 /// <summary>
 /// Create a new Command object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="trackerId">Initial value of the TrackerId property.</param>
 /// <param name="commandText">Initial value of the CommandText property.</param>
 /// <param name="creationDate">Initial value of the CreationDate property.</param>
 public static Command CreateCommand(global::System.Guid id, global::System.Guid trackerId, global::System.String commandText, global::System.DateTime creationDate)
 {
     Command command = new Command();
     command.Id = id;
     command.TrackerId = trackerId;
     command.CommandText = commandText;
     command.CreationDate = creationDate;
     return command;
 }
Пример #8
0
 /// <summary>
 /// Deprecated Method for adding a new object to the Command EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToCommand(Command command)
 {
     base.AddObject("Command", command);
 }