Exemplo n.º 1
0
 public override IDataBuilder AddProviderServices(IDataBuilder builder)
 {
     builder.AddSqlServer(options =>
     {
     });
     //builder.Services.Configure<RepositoryOptions>(options =>
     //{
     //    options.DbLinks.Add(new DbLink.DbLinkItem() { Name = "test", DbType = "SqlServer", ConnectionString = "Server=(localdb)\\mssqllocaldb;Database=Harry.Data.SqlServer.Test;Trusted_Connection=True;MultipleActiveResultSets=true" });
     //});
     builder.AddDbLink("test", "SqlServer", "Server=(localdb)\\mssqllocaldb;Database=Harry.Data.SqlServer.Test;Trusted_Connection=True;MultipleActiveResultSets=true");
     return(builder);
 }