Example #1
0
 public void BuildSampleModel()
 {
     using (var cn = LocalDb.GetConnection("Hs5"))
     {
         var model = new SqlServerModelBuilder().GetDataModelAsync(cn).Result;
     }
 }
Example #2
0
 public void SampleModelCompare()
 {
     using (var cn = LocalDb.GetConnection("Hs5"))
     {
         var asm       = Assembly.LoadFile(@"C:\Users\Adam\Source\Repos\ModelSync.WinForms\SampleModel\bin\Debug\netstandard2.0\SampleModel.dll");
         var srcModel  = new AssemblyModelBuilder().GetDataModel(asm);
         var destModel = new SqlServerModelBuilder().GetDataModelAsync(cn).Result;
         var diff      = DataModel.Compare(srcModel, destModel);
     }
 }
Example #3
0
        public static async Task <DataModel> FromSqlServerAsync(IDbConnection connection)
        {
            var sqlServer = new SqlServerModelBuilder();

            return(await sqlServer.GetDataModelAsync(connection));
        }