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(); }
partial void DeleteCommand(Command instance);
partial void UpdateCommand(Command instance);
partial void InsertCommand(Command instance);
private void detach_Commands(Command entity) { this.SendPropertyChanging(); entity.Tracker = null; }
private void attach_Commands(Command entity) { this.SendPropertyChanging(); entity.Tracker = this; }
/// <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; }
/// <summary> /// Deprecated Method for adding a new object to the Command EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToCommand(Command command) { base.AddObject("Command", command); }