Views: 6.2K
Replies: 1
Archived
|
Spark Domain Generator class SqlMap map["bit"] = "boolean";Hello, 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. http://msdn.microsoft.com/en-us/library/c8f5xwh7.aspx Unless I am missing something, I would recommend changingthe SQL map to “bool” in DomainGenerator.tt and RestGenerator.tt 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
Stan Spilman, Oct 27, 2013
|
|
Reply 1Stan:
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
|