문제

I get the following error when trying to load a large db into linqpad. I can connect to smaller dbs on the same server, but not this larger one. This DB is a Dynamics GP database. Not the actual DYNAMICS one, but the default 'TWO' one.

System.TypeLoadException

Type "LINQPad.User.TypedDataContext' from assembly 'TypedDataContext_iuhmuv. Version=0.0.0.0, Culture=neutral PublicKeyToken=null'

contrain more methods than the current implementation allows.

도움이 되었습니까?

해결책

The CLR imposes a hard limit of ushort.MaxValue - 15 methods per class. It's unlikely that any database would have more tables than this, but I have encountered databases with a ridiculous number of stored procedures. It is possible that your database has more than 65K stored procedures / functions?

If so, you can tell LINQPad not to create methods for them by editing the connection (right-click, Properties) and untick the 'Include Stored Procedures and Functions' checkbox.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top