Ejemplo n.º 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();
        }
Ejemplo n.º 2
0
 partial void DeleteCommand(Command instance);
Ejemplo n.º 3
0
 partial void UpdateCommand(Command instance);
Ejemplo n.º 4
0
 partial void InsertCommand(Command instance);
Ejemplo n.º 5
0
		private void detach_Commands(Command entity)
		{
			this.SendPropertyChanging();
			entity.Tracker = null;
		}
Ejemplo n.º 6
0
		private void attach_Commands(Command entity)
		{
			this.SendPropertyChanging();
			entity.Tracker = this;
		}
Ejemplo n.º 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;
 }
Ejemplo n.º 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);
 }