Page 1 of 1

Argument types do not match exception when map RAW to Guid

Posted: Sun 23 Nov 2008 05:36
by dqminh
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

Posted: Mon 24 Nov 2008 10:02
by AndreyR
Thank you for the report. We have reproduced the error and now we are investigating the issue. You will be notified on the results.

Posted: Fri 05 Dec 2008 08:55
by AndreyR
The problem with System.Guid is fixed, System.Byte[] is not supported like in Microsoft LINQ to SQL. Look forward to the next build.