partial void DeleteSys_Parameter(Sys_Parameter instance);
partial void InsertSys_Parameter(Sys_Parameter instance);
partial void UpdateSys_Parameter(Sys_Parameter instance);
/// <summary> /// Adds a new parameter if it doesn't exist /// </summary> /// <param name="db"></param> /// <param name="parameterName"></param> private static void AddParameter(IntiDataContext db, string parameterName) { if (!db.Sys_Parameter.Any(p => p.Name == parameterName)) { var parameter = new Sys_Parameter(); parameter.GUID = Guid.NewGuid(); parameter.Name = parameterName; parameter.Description = parameterName; db.Sys_Parameter.InsertOnSubmit(parameter); db.SubmitChanges(); } }