Ejemplo n.º 1
0
        public void DeleteAction(int actionId)
        {
            Data1 action = _dataContext.Data1s.Where(u => u.Id == actionId).SingleOrDefault();

            _dataContext.Data1s.DeleteOnSubmit(action);
            _dataContext.SubmitChanges();
        }
Ejemplo n.º 2
0
        public void UpdateAction(Autobot action)
        {
            Data1 actionData = _dataContext.Data1s.Where(u => u.Id == action.Id).SingleOrDefault();

            actionData.Id         = action.Id;
            actionData.Action     = action.Action;
            actionData.ActionDate = DateTime.Now;
            actionData.Indexes    = action.Indexes;
            _dataContext.SubmitChanges();
        }
Ejemplo n.º 3
0
        public void InsertAction(Autobot action)
        {
            var actionData = new Data1()
            {
                Id         = action.Id,
                Action     = action.Action,
                Indexes    = action.Indexes,
                ActionDate = DateTime.Now
            };

            _dataContext.Data1s.InsertOnSubmit(actionData);
            _dataContext.SubmitChanges();
        }
 partial void DeleteData1(Data1 instance);
 partial void UpdateData1(Data1 instance);
 partial void InsertData1(Data1 instance);