Back to list
Views:   6.2K
Replies:  1

Spark Domain Generator class SqlMap map["bit"] = "boolean";


I generated the project and then received an error.

The type or namespace name 'boolean' could not be found (areyou missing a using directive or an assembly reference?) Path\_Spark\Domain.cs Project.Domain.

I know “bool” is an alias of System.Boolean.

Unless I am missing something, I would recommend changingthe SQL map to “bool” in and files.

staticclass SqlMap


    static readonly Dictionary<string,string> map = new Dictionary<string, string>();

    static SqlMap()


        map["bigint"] ="long";

        map["binary"] ="byte[]";

        map["bit"] = "bool”;

After updating the SqlMap and regenerating, all was good.



Stan Spilman, Oct 27, 2013
Reply 1

You are absolutely correct,
In fact, the error was detected a few weeks ago and a fix was made available to the downloads.
Unfortunately it seems that you downloaded just before the correction. Sorry about that. 

Jack Poorte
Jack Poorte, Oct 27, 2013
Stay Inspired!
Join other developers and designers who have already signed up for our mailing list.
Terms     Privacy     Cookies       Do Not Sell       Licensing      
Made with    in Austin, Texas.  - vsn 44.0.0
© Data & Object Factory, LLC.