maxtoroq / DbExtensions

Data-access framework with a strong focus on query composition, granularity and code aesthetics.
https://maxtoroq.github.io/DbExtensions/
Apache License 2.0
227 stars 41 forks source link

dotnet core version #44

Closed Gillardo closed 4 years ago

Gillardo commented 8 years ago

Is there going to be a version of this created that will support dotnet core?

maxtoroq commented 8 years ago

Not using .net core anytime soon.

Worldcycler commented 8 years ago

.net core is now allready RC2 and supported by Microsoft on production environments. It would be great if there could be a .Net Core version.

maxtoroq commented 8 years ago

@Worldcycler ask your employer to support open source.

maxtoroq commented 8 years ago

I plan on supporting .NET Core on v6 , but only including SqlBuilder, SqlSet and Database. SqlTable depends on System.Data.Linq.Mapping, if anyone wants to fork it from referencesource and make it work on .NET Core then I'd be happy to use it . Just released preview2 of v6, including its own (forked from System.Data.Linq.Mapping) metadata implementation and attributes. Now waiting for next .NET Core release for some missing APIs.

maxtoroq commented 7 years ago

Planning on supporting .NET Core 2.0, waiting for RTM. Need testers though.

Gillardo commented 7 years ago

Happy to be involved, whether means testing or coding.

maxtoroq commented 7 years ago

@Gillardo Great. Stay tuned.

maxtoroq commented 7 years ago

.NET Standard 2.0 does not include DbProviderFactories, see dotnet/corefx#20903 and dotnet/standard#356

Need to investigate what other ORMs are doing as a workaround, or keep waiting.

maxtoroq commented 7 years ago

Using convention-based DbProviderFactories. Will work for most providers.

@Gillardo The dev-netstd branch has a new project called DbExtensions.netstd. Give it a try and let me know how it goes.

Gillardo commented 7 years ago

Thanks @maxtoroq will look at using this shortly

Gillardo commented 7 years ago

@maxtoroq i am guessing there is no nuget package for this yet? I have to build from source and reference in my project?

maxtoroq commented 7 years ago

@Gillardo Yep.

TwitchBronBron commented 6 years ago

@maxtoroq if I did the work to set up appveyor scripts, would you be open to publishing nightly prerelease dotnet core versions of this library to nuget or myget so we don't have to pull down and compile ourselves?

maxtoroq commented 6 years ago

@TwitchBronBron I'd be happy to pack a pre-release if someone does some testing to make sure it actually works.

TwitchBronBron commented 6 years ago

@maxtoroq I'd be more than willing to do some testing to verify it actually works. Let me know how I can help!

maxtoroq commented 6 years ago

@TwitchBronBron I just need someone to use it successfully in a real .NET Core project.

damiensawyer commented 6 years ago

If anyone is interested, I 'think' that I got it working ish in netstandard 2.0. I've not published a nuget, however the code is https://github.com/damiensawyer/dbextensionscore/commits/master Basically I created a netstandard2.0 project, copied in the code, deleted anything that wouldn't compile, added it to our other project and all our tests passed. I have no idea what the code did that I deleted... but what remains "works for us with the basics".

maxtoroq commented 6 years ago

I've just published 6.2.0-preview1 which supports netcore2.1. Cannot do netstandard2.0 until it includes DbProviderFactories. @Gillardo @TwitchBronBron @damiensawyer

maxtoroq commented 5 years ago

Leaning towards waiting for netstandard2.1

TwitchBronBron commented 5 years ago

@maxtoroq we've been using 6.2.0-preview1 at work for a few weeks now (in development), and it seems to be working great with the parts we use. Thanks for getting that put together .

doriant commented 5 years ago

Hello! Can anybody help me? I use the DbExtensions framework in my plugin for NopCommerce 4.10 which uses the .net core 2.1 platform. I installed the DbExtensions (v6.2.0-preview2) from the Package Manager console and added the appropriate namespace in my class. Visual Studio sees DbExtensions but when I try to call a class from it ('Database' for example), I get an exception: 'Could not load file or assembly 'DbExtensions, Version=6.2.0.0, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified.' Maybe I missed something? Thanks.

maxtoroq commented 5 years ago

v6.2.0-preview3 now supports both .NET Core 2.1 and .NET Standard 2.1

maxtoroq commented 4 years ago

Shipped in v6.2.0