public void BuildSampleModel() { using (var cn = LocalDb.GetConnection("Hs5")) { var model = new SqlServerModelBuilder().GetDataModelAsync(cn).Result; } }
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); } }
public static async Task <DataModel> FromSqlServerAsync(IDbConnection connection) { var sqlServer = new SqlServerModelBuilder(); return(await sqlServer.GetDataModelAsync(connection)); }