I am getting the following error when I try to generate NameValueList class. Please help.
System.Exception: Column MyTable has resulted blank property name
at CodeSmith.Csla.TemplateBase.CsHelper.GetPropertyName(DataObjectBase col)
at CodeSmith.Csla.TemplateBase.PropertyInfo.Load(DataObjectBase col)
at CodeSmith.Csla.TemplateBase.PropertyInfo..ctor(DataObjectBase column, ObjectInfo parent)
at CodeSmith.Csla.TemplateBase.ObjectInfo.LoadProperties(TableSchema table)
at CodeSmith.Csla.TemplateBase.ObjectInfo.LoadFromSchema(CodeTemplate template)
at CodeSmith.Csla.TemplateBase.ObjectInfo..ctor(CodeTemplate template)
at _CodeSmith.NameValueList_cst.__RenderMethod1(TextWriter writer, Control control)
at CodeSmith.Engine.DelegateControl.Render(TextWriter writer)
at CodeSmith.Engine.Control.RenderChildren(TextWriter writer)
at CodeSmith.Engine.CodeTemplate.Render(TextWriter writer)
at CodeSmith.Engine.CodeTemplate.RenderToString()
at CodeSmith.Gui.CodeTemplateGenerator.f(Object A_0, EventArgs A_1)
Hi,
The error is generated by the fact that your table name is the same as a column. For example you have an Email table and a column named email also.
Hope this helps...
Copyright (c) Marimer LLC