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

Support Microsoft.Data.SqlClient #258

Closed
chenhw opened this issue Nov 18, 2019 · 3 comments
Closed

Support Microsoft.Data.SqlClient #258

chenhw opened this issue Nov 18, 2019 · 3 comments
Labels
help wanted Extra attention is needed

Comments

@chenhw
Copy link

chenhw commented Nov 18, 2019

引用System.Data.SqlClient,切换到最新的Microsoft.Data.SqlClient后报错。
at System.Signature.GetSignature(Void* pCorSig, Int32 cCorSig, RuntimeFieldHandleInternal fieldHandle, IRuntimeMethodInfo methodHandle, RuntimeType declaringType)
at System.Reflection.RuntimeMethodInfo.get_ReturnType()
at AspectCore.Extensions.Reflection.MethodReflector.GetDisplayName(MethodInfo method)
at AspectCore.Extensions.Reflection.MethodReflector..ctor(MethodInfo reflectionInfo)
at AspectCore.Extensions.Reflection.MethodReflector.<>c__DisplayClass0_0.g__CreateInternal|0(Pair2 item) at AspectCore.Extensions.Reflection.ReflectorCacheUtils2.<>c__DisplayClass1_0.b__0(TMemberInfo k)
at System.Collections.Concurrent.ConcurrentDictionary2.GetOrAdd(TKey key, Func2 valueFactory)
at AspectCore.Extensions.Reflection.ReflectorCacheUtils2.GetOrAdd(TMemberInfo key, Func2 factory)
at AspectCore.Extensions.Reflection.MethodReflector.Create(MethodInfo reflectionInfo, CallOptions callOption)
at AspectCore.Extensions.Reflection.ReflectorExtensions.GetReflector(MethodInfo method, CallOptions callOption)
at SkyApm.Diagnostics.TracingDiagnosticMethodCollection..ctor(ITracingDiagnosticProcessor tracingDiagnosticProcessor)
at SkyApm.Diagnostics.TracingDiagnosticObserver..ctor(ITracingDiagnosticProcessor tracingDiagnosticProcessor, ILoggerFactory loggerFactory)
at SkyApm.Diagnostics.TracingDiagnosticProcessorObserver.Subscribe(DiagnosticListener listener, ITracingDiagnosticProcessor tracingDiagnosticProcessor)
at SkyApm.Diagnostics.TracingDiagnosticProcessorObserver.OnNext(DiagnosticListener listener)
at System.Diagnostics.DiagnosticListener.AllListenerObservable.OnNewDiagnosticListener(DiagnosticListener diagnosticListener)
at System.Diagnostics.DiagnosticListener..ctor(String name)
at Microsoft.Data.SqlClient.SqlConnection..cctor()

@liuhaoyang
Copy link
Collaborator

目前还没有做对Microsoft.Data.SqlClient的适配

@ElderJames
Copy link
Member

It depends on dotnet/SqlClient/issues/93

@ElderJames ElderJames changed the title 不支持Microsoft.Data.SqlClient Support Microsoft.Data.SqlClient Dec 29, 2019
@ElderJames ElderJames added the help wanted Extra attention is needed label Dec 29, 2019
@ElderJames
Copy link
Member

You can use System.Data.SqlClient first.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants