Exemple #1
0
 //**********************************************************
 //* Добавление нового запроса
 //**********************************************************
 public static void AddRequest(Int32 researchId, RequestType requestType)
 {
     using (SandBoxDataContext db = new SandBoxDataContext())
     {
         Request request = new Request() {ResearchId = researchId, Type = (Int32)requestType, State = (Int32)RequestState.EXECUTING};
         db.Requests.InsertOnSubmit(request);
         db.SubmitChanges();
     }
 }
Exemple #2
0
 partial void UpdateRequest(Request instance);
Exemple #3
0
 partial void DeleteRequest(Request instance);
Exemple #4
0
 partial void InsertRequest(Request instance);