public static Database GetDefaultDatabase(this EntityApp app) { var ds = app.GetDefaultDataSource(); return(ds.Database); }