Hi, I tried to use entity framework. In the my DB i have "boolean" column. I use next domain: CREATE DOMAIN T_BOOL AS CHAR(1) CHARACTER SET UTF8 DEFAULT '0' NOT NULL CHECK (value in ('0', '1')) COLLATE UTF8;
I created model from my DB. I see property in the model with type String. I changed type to Boolean. As result i have exception: Member Mapping specified is not valid. The type 'Edm.Boolean[Nullable=False,DefaultValue=]' of member 'FILLPIECES' in type 'Prowork.Dal.ASSEMBLY' is not compatible with 'FirebirdClient.char[Nullable=False,DefaultValue=,MaxLength=1,Unicode=False,FixedLength=True]' of member 'FILLPIECES' in type 'Prowork.Dal.Store.ASSEMBLY'. I tried to use Integer type for column in the DB. But EF also cannot convert it to Boolean. I did small research. And found examples http://blogs.msdn.com/jkowalski/archive/2008/06/23/sample-entity-framework-provider-for-oracle.aspx I looked provider by reflector, class FbProviderManifest. It does not contain any code for recognizing Char(1). And i agree with this. Question. How can i customize maping? Thanks. ------------------------------------------------------------------------------ _______________________________________________ Firebird-net-provider mailing list Firebird-net-provider@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/firebird-net-provider