-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
Will you support CoreCLR? #241
Comments
Only in the "yeah, that'd be good" sense of "plans". I haven't had I need to set some time aside to investigate.
|
Have you had some time to investigate this? |
Seems as though there is a branch! https://github.com/StackExchange/dapper-dot-net/tree/CoreCLR |
Oh, there's more than a branch - the branch has merged, and I dropped some
|
There have for sure been some time invested, interesting :) I will check it out! |
This is the one you want for now: https://www.nuget.org/packages/Dapper/1.41.0-beta5
|
The parts of dapper that i use seems to work as they should :) Thanks! |
Just watch out for anything involving precision/scale: the current
|
The 1.41.0-beta5 build already appears to be stale with the latest dnx release. I had to make a few changes (discussed here: #310), rebuild and locally deploy the package to get it working. An updated prerelease package on Nuget would help, but ultimately there seems to be a challenge with naming and versioning to support the various frameworks. As it stands now, there doesn't appear to be a way to have net35 alongside dnx451 and dnxcore50 in a single package. There is an question posed about it here: aspnet/dnx#1894. The solution taken in the above package 1.41.0-beta5 was to remove net35, but that approach would be a breaking change. Presumably this limits the ability to have CoreClr support in a package not marked as prerelease. I realize that CoreCLR is still in Beta, but are there any thoughts on how Dapper CoreClr support will work going forward? |
Do you have any plans to create a build targeting asp.net beta6 @mgravell ? The beta5 package gave me some real headache yesterday and today when i tried to do some updates to beta6, but I don´t really understand why dnx/asp.net did not give me a better clue of what was wrong... Ignore this, it is only in one of my environments.... |
@mgravell seems like the
|
I haven't had time to update with the latest betas etc; I will blow the On 24 Aug 2015 8:45 pm, "Pranav K" [email protected] wrote:
|
Update on this: I've updated the CoreCLR packages, but we're looking through other open issues and PRs before doing another NuGet push on a 1.43 beta. We're tight on time over here, so thanks for the patience! |
Any update on this? I'd love to be able to use Dapper for my dnxcore project. |
@ShaneCourtrille Sorry, we've been a bit busy and haven't gotten to pull requests - there is .Net core support on NuGet that will use the latest packages on most restores anyway (due to newest-wins resolution) - check out 1.41-beta5 here: https://www.nuget.org/packages/Dapper/1.41.0-beta5 (I'm using it without problems in a DNX solution now). |
Just tried using the 1.41.0-beta5 on an ASPNET5 1.0.0-beta8 site, and I'm seeing the following error in the build output:
Quick Google suggests: aspnet/dnx#2031 Keep up the good work, looking forward to running my project CoreCLR only! |
That is related to the issue I had earlier and that @pranavkm suggest a solution on. |
Oops, you're right, should've read the thread more closely! |
CoreCLR support is in beta by the way - 1.50-beta* should be very CoreCLR friendly. I'll leave this open a while longer for feedback...but we should be good to go here. Outside Dapper, CoreCLR work is not done. The discussion about what the differences between CLR and CoreCLR should be regarding the bits very important to Dapper and other ORMs is far from resolved. |
Just FYI, 1.50-beta is working like a dream for me when combined with the beta System.Data.SqlClient package!
|
I have a rough version of the net connector mysql driver converted for corefx. I haven't been able to figure out a way to reach the net connect team to offer them the code. You can ping me if you are interested. It runs with 1.50 dapper beta. All the mysql tests are passing in dapper and contrib. There might be some features disabled in the mysql driver but all the code is there. |
That's awesome news. By the "net connect" team, do you mean at mysql? I ;p On 18 January 2016 at 21:50, mihevc [email protected] wrote:
Regards, Marc |
Yes, MySql. It's the code from this site. https://dev.mysql.com/downloads/connector/net/6.9.html. It took me a good week to convert and get the unit tests passing. There is a lot of security and streaming that is different between corefx and dot net. |
As far as I can tell, the "process" (quotes quite intentional... I'm not On 18 January 2016 at 22:11, mihevc [email protected] wrote:
Regards, Marc |
A litlle off topic here, @mihevc @mgravell beware of License issue with Mysql official connector (GPL) all code using it must be GPL as well. (I still have to manage this issue in SimpleStack as well) My two cents |
That's very relevant; interesting. Options, then, as I see it:
Since nobody will be consuming the test project, I don't see the first one as problematic, but IANAL as to whether that is sufficient. I will ponder. |
I think we're ok here;
|
I was not aware of these foss exceptions. If it is not a problem for Dapper/SimpleStack, it remain important for people using Dapper/SimpleStack for non free software. |
As I interpret it, though, that is more a case of people knowing what their Very much worth taking a few minutes for us to look into, but I just don't On 19 January 2016 at 11:20, Vincent DARON [email protected] wrote:
Regards, Marc |
bump now that Core and company are RC2 |
@RichiCoder1 I have updated for RC2 here: https://github.com/StackExchange/dapper-dot-net/tree/netstandard We'll give it a sanity check before merging in and get an RC2 package up as soon as Marc and I can find some time to review. |
@NickCraver awesome! Thanks and great job :) |
Just to add that I had beta 8 working well on RC1 but can't get beta 8 or 9 working on RC2. I get the following error after porting and running a web app that builds fine.
So looking forward to beta 10. Interesting comment in #504 BTW. I've had to mark Dapper as not supported now on https://anclafs.com but I'll change this when the fixed package is out. Or feel free to send a PR to https://github.com/jpsingleton/ANCLAFS. Keep up the good work @NickCraver @mgravell! |
1.50-beta10 (supporting RC2) has been pushed to NuGet. Let us know if you have any issues! |
Oh and StrongName is available too, if you're sick and twisted like that: |
Scratch that. |
Awesome, works a treat. Thanks guys. I've reverted my previous update. |
what about Jil rc2 support? |
Oh right, I'll get to it soon. I have a backlog of stuff here - will get a
|
@NickCraver, thanks!) |
@NickCraver Hey. Thanks for al your work. If I use the dapper rc2 package, I get an error when compiling saying that my SqlConnection does not support "Execute". I have the appropiate using Dapper statement. Anything I'm missing?
Edit: Nevermind. Updating to the rc2a version of dapper worked |
Thanks for the great work around Dapper. I have it running well in a .net 4.5 environment, but am getting some issues when porting to .net Core with Sql Server. Is there a known issue around the exception below? I can see my sql executing on sql profiler, but then receive this error. Does anyone have a solution for this?
The server is attempting to use a feature that is not supported on this platform. Received an unsupported token 'Udt' while reading data from the server. at System.Data.SqlClient.TdsParser.TryCommonProcessMetaData(TdsParserStateObject stateObj, _SqlMetaData col) at System.Data.SqlClient.TdsParser.TryProcessMetaData(Int32 cColumns, TdsParserStateObject stateObj, _SqlMetaDataSet& metaData) at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady) at System.Data.SqlClient.SqlDataReader.TryConsumeMetaData() at System.Data.SqlClient.SqlDataReader.get_MetaData() at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString) at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, SqlDataReader ds) at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) at System.Data.SqlClient.SqlCommand.ExecuteReader() at SqlServerTests.Program.Main(String[] args) in... |
That's very odd; what is |
Note: that error is happening inside the SqlClient ADO.NET library - not in dapper. My first guess would be that one of the columns is ... "unusual" in some way? What are the columns here? Also: is this SQL Azure? We've seen cases in the past where SQL Azure works differently, so it would be good to rule that out. |
Thanks for the feedback. The issue seems to be the sql geography type. When using Dapper 1.4.2 and querying the same table, I get results, but using Dapper 1.50.3-beta1 or 1.50.2 with .net Core, I get the issue above. I took the geography column out and it worked fine. I've tried both Sql 2012 and Sql 2014. |
Can I ask a question? Does it work if you use ADO.NET directly? For
example:
using(var cmd = conn.CreateCommand()) {
cmd.CommandText = "what you had";
cmd.CommadType = CommandType.CommandText;
using(var reader = cmd.ExecuteReader()) {
while(reader.Read()) {
// do something...
}
}
}
(c# is from memory, might need tweaks)
If the above works: we might need to fix dapper; if it fails, the problem
is in SqlClient and we should get it logged there.
…On 30 November 2016 at 03:27, JMan77 ***@***.***> wrote:
Thanks for the feedback. The issue seems to be the sql geography type.
When using Dapper 1.4.2 and querying the same table, I get results, but
using Dapper 1.50.3-beta1 or 1.50.2 with .net Core, I get the issue above.
I took the geography column out and it worked fine. I've tried both Sql
2012 and Sql 2014.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#241 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AABDsP4cCcH6mlL3jyIrQ7umYApsQ1aMks5rDO0ngaJpZM4DdN08>
.
--
Regards,
Marc
|
You're right - using ADO.net results in the same error and it's specifically around the geography type. |
Thanks, that's really helpful for me, for when it next gets reported. As
you can imagine, though: I don't think dapper can possibly do anything
here, except perhaps to catch this specific exception and re-throw it with
something that makes it more obvious who to blame...
…On 1 December 2016 at 03:11, JMan77 ***@***.***> wrote:
You're right - using ADO.net results in the same error and it's
specifically around the geography type.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#241 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AABDsPlmI1z8HTXocTO6OqR8l0xsu1Epks5rDjrxgaJpZM4DdN08>
.
--
Regards,
Marc
|
Closing this issue out, .NET Core is rocking on and comments above aren't related to Dapper overall |
Hey - Are there any plans to port Dapper over the the CoreCLR?
The text was updated successfully, but these errors were encountered: