public static int AddMlwrFeature(int mlwrId, string fclass, string sclass, string value) { int newMlwrId = -1; using (SandBoxDataContext db = new SandBoxDataContext()) { var fm = from f in db.MlwrFeature select f.Id; int ewMlwrId = fm.Max() + 1; MlwrFeature mlwrF = new MlwrFeature() { Id = ewMlwrId, MlwrId = mlwrId, FClass = fclass, SClass = sclass, Value = value }; db.MlwrFeature.InsertOnSubmit(mlwrF); db.SubmitChanges(); } return newMlwrId; }
partial void UpdateMlwrFeature(MlwrFeature instance);
partial void DeleteMlwrFeature(MlwrFeature instance);
partial void InsertMlwrFeature(MlwrFeature instance);