Exemplo n.º 1
0
        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;
        }
Exemplo n.º 2
0
 partial void UpdateMlwrFeature(MlwrFeature instance);
Exemplo n.º 3
0
 partial void DeleteMlwrFeature(MlwrFeature instance);
Exemplo n.º 4
0
 partial void InsertMlwrFeature(MlwrFeature instance);