Subsonic 3,MySQL T4 模板:Structs.tt 失败
有人可以帮忙吗? 当我尝试生成 Structs.cs 文件时,该过程因错误而失败,因为 MySQL 提供程序未返回 SchemaName。
” 错误 3 运行转换:System.ArgumentNullException:值不能为 null。 参数名称:objectToConvert 在 Microsoft.VisualStudio.TextTemplate.ToStringHelper.ToStringWithCulture(对象 objectToConvert) 在 Microsoft.VisualStudio.TextTemplate3BD02BC645E0D86C85EB7201F039F235.GenerateTextTransformation.TransformText()....."
这是在 Structs.cs 中生成的代码:
/// <summary>
/// Table: _companies
/// Primary Key: ID
/// </summary>
public class _companiesTable: DatabaseTable {
public _companiesTable(IDataProvider provider):base("_companies",provider){
ClassName = "_company";
SchemaName = "
我尝试使用 MySQL 连接器 6.04 和 5.1,以及 mysql 服务器版本 5.067 和 5.1.33 以及 CREATE TABLE
这是公司表的架构:
-- 表“companies” DDL
companies
( ID
int(10) NOT NULL auto_increment, 主键(ID
) ) ENGINE=InnoDB AUTO_INCRMENT=32 默认字符集=latin1;
有人可以帮忙吗?
Can anyone help? When I try to generate my Structs.cs file, the process is failing with the error, becuase the SchemaName is not being returned by MySQL provider.
"
Error 3 Running transformation: System.ArgumentNullException: Value cannot be null.
Parameter name: objectToConvert
at Microsoft.VisualStudio.TextTemplating.ToStringHelper.ToStringWithCulture(Object objectToConvert)
at Microsoft.VisualStudio.TextTemplating3BD02BC645E0D86C85EB7201F039F235.GeneratedTextTransformation.TransformText()....."
This is the code being generated in Structs.cs:
/// <summary>
/// Table: _companies
/// Primary Key: ID
/// </summary>
public class _companiesTable: DatabaseTable {
public _companiesTable(IDataProvider provider):base("_companies",provider){
ClassName = "_company";
SchemaName = "
I have tried using MySQL connector 6.04 and 5.1, and mysql server versions 5.067 and 5.1.33 with the same results.
This is the schema of the companies table:
-- Table "companies" DDL
CREATE TABLE companies
(ID
int(10) NOT NULL auto_increment,
PRIMARY KEY (ID
)
) ENGINE=InnoDB AUTO_INCREMENT=32 DEFAULT CHARSET=latin1;
Can anyone help?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以将此作为问题输入吗
http://github.com/subsonic/SubSonic-3.0-Templates/issues
Can you enter this as an issue please
http://github.com/subsonic/SubSonic-3.0-Templates/issues