Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Help with Testing Issues #35

Closed
thefonzi opened this issue Dec 27, 2017 · 1 comment
Closed

Help with Testing Issues #35

thefonzi opened this issue Dec 27, 2017 · 1 comment

Comments

@thefonzi
Copy link

Hello Sebastien,
as sync with local databases seems to work quite well, I would like do some deeper tests using "Dotmim.Sync.SampleConsole" and "UWPSyncSampleWebServer".
But I get some errors when starting the "UWPSyncSampleWebServer". Could you do a quick check of this combination and let me know, when ready to check out?

Thanks
Reinhold

@Mimetis
Copy link
Owner

Mimetis commented Dec 27, 2017

The UWPSyncSampleWebServer website is working for for the UWPSyncSample actually.
I made some minors changes to be able to use it from the SampleConsole application.
Be sure to configure correctly the server api, in the Startup class:

        public void ConfigureServices(IServiceCollection services)
        {
            services.AddMvc();

            // For UWP Sample
            // Make Sure this database is created on you sqlexpress instance
            var connectionString = @"Data Source=localhost\sqlexpress; Initial Catalog=Contoso; Integrated Security=true;";
            services.AddSyncServer<SqlSyncProvider>(connectionString, configuration =>
            {
                var s = new string[] { "Employees" };
                configuration.Add(s);
                configuration.DownloadBatchSizeInKB = 1000;
            });


            // For console sample app
            // make sure the Northwind database is up and running on your sqlexpress instance
            //var connectionString = @"Data Source=localhost\sqlexpress; Initial Catalog=Northwind; Integrated Security=true;";
            //services.AddSyncServer<SqlSyncProvider>(connectionString, configuration =>
            //{
            //    var s = new string[] { "Customers", "Region" };
            //    configuration.Add(s);
            //    configuration.DownloadBatchSizeInKB = 1000;
            //});
        }

Uncomment the right section (or write you own !)

Sebastien

@Mimetis Mimetis closed this as completed Dec 27, 2017
workgroupengineering pushed a commit to workgroupengineering/Dotmim.Sync that referenced this issue Sep 16, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants