Argument types do not match exception when map RAW to Guid

Discussion of open issues, suggestions and bugs regarding LinqConnect – Devart's LINQ to SQL compatible ORM
Post Reply
dqminh
Posts: 28
Joined: Wed 12 Nov 2008 01:31

Argument types do not match exception when map RAW to Guid

Post by dqminh » Sun 23 Nov 2008 05:36

Support we want to map Role in OraDirect's Membership Provider to Entity. We open Entity Developer, drag table ASPNET_ROLES, and map as Role Entity. With property ROLEID, we map as RoleId with type Guid (Server Data Type is RAW(16))

When retrieve an entity like:

Code: Select all

SecurityDataContext db = new SecurityDataContext();
Role role1 = db.Roles.SingleOrDefault(p => p.ApplicationName == "/" && p.RoleName == "Administrator");
The exception Argument types do not match occur.

Any suggestion? Thanks

AndreyR
Devart Team
Posts: 2919
Joined: Mon 07 Jul 2008 13:16

Post by AndreyR » Mon 24 Nov 2008 10:02

Thank you for the report. We have reproduced the error and now we are investigating the issue. You will be notified on the results.

AndreyR
Devart Team
Posts: 2919
Joined: Mon 07 Jul 2008 13:16

Post by AndreyR » Fri 05 Dec 2008 08:55

The problem with System.Guid is fixed, System.Byte[] is not supported like in Microsoft LINQ to SQL. Look forward to the next build.

Post Reply