How to get around primary key of byte[]?


we have few tables have binary(28) columns primary key.  these sid values active directory.  ria services seems unable handle these:

error    1    property 'helpdesk.web.models.group_names.group_sid' marked key property , of type 'system.byte[]', not supported key member type.


there way around this?  thought creating view converted them varchar values, they're used fk values number of tables, doesn't seem work.  in our custom written orm, we're trying migrate away from, convert them strings when come out of database , convert them when inserting/updating.  there comparable method of doing ria services?

hi,

i'm afraid need mapping described in case.

this information: if use entity framework , column 16-byte binary column, can map guid property editing .edmx file explained here



Silverlight  >  WCF RIA Services with Silverlight



Comments

Popular posts from this blog

Conditional formatting a graph vertical axis in SSRS 2012 charts

Register with Power BI failed

SQL server replication error Cannot find the dbo or user defined function........