public static void Insert(string model, IDbInterface helper) { var record = helper.FindFirst <Model, string>("modelName", model); if (record != null) { return; } helper.Insert(new Model() { modelName = model }, false); }
public static void Insert(string code, IDbInterface helper) { var record = helper.FindFirst <MaterialCode, string>("code", code); if (record != null) { return; } helper.Insert(new MaterialCode() { code = code }, false); }
public static void Insert(string name, IDbInterface helper) { var record = helper.FindFirst <Name, string>("materialName", name); if (record != null) { return; } helper.Insert(new Name() { materialName = name }, false); }