示例#1
0
        static void Main(string[] args)
        {
            NLogAudit.Register(AuditType.Debug, AuditTarget.Console, AuditTarget.File);

            Audit.Message("Lit.Db.Test");

            try
            {
                Audit.Message("\n\n*** NAMING TEST ***");
                Naming.Execute();

                //Audit.Message("\n\n*** STORED PROCEDURE TEST ***");
                //StoredProcedure.Execute(db);

                Audit.Message("\n\n*** INFORMATION SCHEMA TEST ***");
                MySql.InformationSchema.Load(db);

                Audit.Message("\n\n*** SCHEMA UPDATE TEST ***");
                SchemaUpdate.Execute(tdb);

                Audit.Message("\n\n*** DATA ACCESS TEST ***");
                DataAccess.Execute(db);

                Audit.Message("\n\n*** TEST FINISHED OK ***");
            }
            catch (Exception x)
            {
                Audit.Error($"Error: {x.Message}.");
            }
        }