public static void Write(string type, string text) { using (var db = new DbDataContext()) db.Log(Program, type, text); }