コード例 #1
0
ファイル: CommandLogic.cs プロジェクト: santatamas/Steal-ME
        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);
 }