I just set up a .net core 2.1.x MVC project in VS2017 and tried with the documentation to get started and got a syntax error and some issues:
yield does not exist in context / Invalid token "break;
Steps to reproduce
public IEnumerable<IDataProviderSettings> DataProviders => yield break;
This works:
public IEnumerable<IDataProviderSettings> DataProviders => Enumerable.Empty<IDataProviderSettings>();
Also the docs are really thin. Where to I put also DataConnection.DefaultSettings = new MySettings();?
I assume in MVC apps in Startup.cs and I also don't know if it's supposed to be implemented like that anymore (?). Could you give in code examples also the entire file, so one can see exactly what you imported and so forth (like MS docs).
Thanks.
Environment details
linq2db version: 1.10.0
Database Server: MySql 5.7
Operating system: E.g. Windows 10
Framework version: .NET Core 2.1.x
Visual Studio: 2017
I just set up a .net core 2.1.x MVC project in VS2017 and tried with the documentation to get started and got a syntax error and some issues:
Steps to reproduce
This works:
Also the docs are really thin. Where to I put also
DataConnection.DefaultSettings = new MySettings();
?I assume in MVC apps in Startup.cs and I also don't know if it's supposed to be implemented like that anymore (?). Could you give in code examples also the entire file, so one can see exactly what you imported and so forth (like MS docs).
Thanks.
Environment details
linq2db version: 1.10.0
Database Server: MySql 5.7
Operating system: E.g. Windows 10
Framework version: .NET Core 2.1.x Visual Studio: 2017