-
Notifications
You must be signed in to change notification settings - Fork 299
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
Feature | Project Microsoft.SqlServer.Server separation phase 1 (MDS consumes MSS using netfx) #1435
Conversation
@@ -32,7 +35,7 @@ internal static SqlUdtInfo GetFromType(Type target) | |||
SqlUdtInfo udtAttr = TryGetFromType(target); | |||
if (udtAttr == null) | |||
{ | |||
throw InvalidUdtException.Create(target, Strings.SqlUdtReason_NoUdtAttribute); | |||
throw Server.InvalidUdtException.Create(target, Strings.SqlUdtReason_NoUdtAttribute); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If InvalidUstException bubbles up to users, this is another one we need to move to and get from Microsoft.SqlServer.Server. That's where it was originally:
47ccdca
to
d9e0720
Compare
d9e0720
to
aef40d0
Compare
src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/Server/SqlSer.cs
Outdated
Show resolved
Hide resolved
e2191db
to
268d0ca
Compare
…erverSep # Conflicts: # src/Microsoft.Data.SqlClient/netfx/src/Microsoft/Data/SqlClient/Server/sqlser.cs
268d0ca
to
68edaa5
Compare
} | ||
|
||
/// <include file='../../doc/snippets/Microsoft.Data.SqlClient.Server/InvalidUdtException.xml' path='docs/members[@name="InvalidUdtException"]/Create/*' /> | ||
internal static InvalidUdtException Create(Type udtType, string resourceReason = "SqlUdtReason_NoUdtAttribute") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we go ahead and open this up as public now, we can reference it without using reflection in the future once we drop netfx support (still years out). And we won't have to release a new version of MSS to do it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, David. I've missed the main goal of adding xml doc here. 😄 Done.
Co-authored-by: David Engel <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
A rework on #1140 without any changes on the .Net Core project.
Microsoft.SqlServer.Server (new NuGet Package)
Provides Microsoft.SqlServer.Server (10 types) – targeting .NET Standard 2.0
Types forwarded to System.Data - for .NET Framework 4.6.1+