//********************************************************** //* Добавление нового запроса //********************************************************** 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(); } }
partial void UpdateRequest(Request instance);
partial void DeleteRequest(Request instance);
partial void InsertRequest(Request instance);