public void Dispose() { if (db != null) { db.Dispose(); db = null; } }
static void viewWords() { mphContext context = p.container.GetService <mphDb>().getContext(); Console.WriteLine(context.words_list.Count()); foreach (var item in context.words_list.OrderBy(c => c.digit).ThenBy(c => c.field2).Take(1000)) { Console.WriteLine($"{item.nom_old}\t\t {item.reestr}\t {item.field2}"); } }
public mphObj(mphContext db) { this.db = db; }
public wordsList(mphContext db) { this.db = db; }
public inflectionController(mphContext db) { this.db = db; }
public pclsController(RazorViewToStringRenderer view, mphContext db) { this.view = view; this.db = db; }
public mphDb(mphContext db, ILoggerFactory DbLogging) { this.db = db; Logger = DbLogging.CreateLogger <mphDb>(); //Logger.LogError("mphDb created"); }
public flexesController(mphContext db) { this.db = db; }