[向all提问]求一个代码生成器~~~~~~

xuyiazl 2010-02-24 02:47:07







要求生成视图的实体类 CodeSmith 不行 只想要一个生成很纯洁、很单纯的 实体类 CodeSmith 太臃肿了。


谢谢了 ~ 急用~ 好几百个视图数据 做缓存。。。
...全文
137 15 打赏 收藏 转发到动态 举报
写回复
用AI写文章
15 条回复
切换为时间正序
请发表友善的回复…
发表回复
wuyq11 2010-02-24
  • 打赏
  • 举报
回复
动软
代码生成器
xuyiazl 2010-02-24
  • 打赏
  • 举报
回复
引用 12 楼 lcl_data 的回复:
引用 8 楼 xuyiazl 的回复:
引用 7 楼 lcl_data 的回复:http://www.cnblogs.com/huxj/archive/2009/11/21/1607791.html form  QQ

找到办法了  直接linq to sql 生成   

漆黑一片~~~


当散分帖了~
代码贴出来看看吧

[Table(Name = "dbo.temp_vs_sg")]
public partial class temp_vs_sg
{

private string _STOCK_CODE;

private string _STOCK_NAME;

private System.Nullable<decimal> _F010;

private System.Nullable<decimal> _F011;

private System.Nullable<decimal> _F014;

private System.Nullable<decimal> _F015;

private System.Nullable<decimal> _F016;

private System.Nullable<decimal> _F020;

private System.Nullable<decimal> _f001;

private System.DateTime _EndDate;

private System.Nullable<decimal> _f050;

private System.Nullable<decimal> _f051;

private System.Nullable<decimal> _LR001;

private System.Nullable<decimal> _LR006;

public temp_vs_sg()
{
}

[Column(Storage = "_STOCK_CODE", DbType = "VarChar(12) NOT NULL", CanBeNull = false)]
public string STOCK_CODE
{
get
{
return this._STOCK_CODE;
}
set
{
if ((this._STOCK_CODE != value))
{
this._STOCK_CODE = value;
}
}
}

[Column(Storage = "_STOCK_NAME", DbType = "VarChar(16)")]
public string STOCK_NAME
{
get
{
return this._STOCK_NAME;
}
set
{
if ((this._STOCK_NAME != value))
{
this._STOCK_NAME = value;
}
}
}

[Column(Storage = "_F010", DbType = "Decimal(18,4)")]
public System.Nullable<decimal> F010
{
get
{
return this._F010;
}
set
{
if ((this._F010 != value))
{
this._F010 = value;
}
}
}

[Column(Storage = "_F011", DbType = "Decimal(18,4)")]
public System.Nullable<decimal> F011
{
get
{
return this._F011;
}
set
{
if ((this._F011 != value))
{
this._F011 = value;
}
}
}

[Column(Storage = "_F014", DbType = "Decimal(18,4)")]
public System.Nullable<decimal> F014
{
get
{
return this._F014;
}
set
{
if ((this._F014 != value))
{
this._F014 = value;
}
}
}

[Column(Storage = "_F015", DbType = "Decimal(18,4)")]
public System.Nullable<decimal> F015
{
get
{
return this._F015;
}
set
{
if ((this._F015 != value))
{
this._F015 = value;
}
}
}

[Column(Storage = "_F016", DbType = "Decimal(18,4)")]
public System.Nullable<decimal> F016
{
get
{
return this._F016;
}
set
{
if ((this._F016 != value))
{
this._F016 = value;
}
}
}

[Column(Storage = "_F020", DbType = "Decimal(18,4)")]
public System.Nullable<decimal> F020
{
get
{
return this._F020;
}
set
{
if ((this._F020 != value))
{
this._F020 = value;
}
}
}

[Column(Storage = "_f001", DbType = "Decimal(24,10)")]
public System.Nullable<decimal> f001
{
get
{
return this._f001;
}
set
{
if ((this._f001 != value))
{
this._f001 = value;
}
}
}

[Column(Storage = "_EndDate", DbType = "DateTime NOT NULL")]
public System.DateTime EndDate
{
get
{
return this._EndDate;
}
set
{
if ((this._EndDate != value))
{
this._EndDate = value;
}
}
}

[Column(Storage = "_f050", DbType = "Decimal(18,4)")]
public System.Nullable<decimal> f050
{
get
{
return this._f050;
}
set
{
if ((this._f050 != value))
{
this._f050 = value;
}
}
}

[Column(Storage = "_f051", DbType = "Decimal(18,4)")]
public System.Nullable<decimal> f051
{
get
{
return this._f051;
}
set
{
if ((this._f051 != value))
{
this._f051 = value;
}
}
}

[Column(Storage = "_LR001", DbType = "Decimal(24,8)")]
public System.Nullable<decimal> LR001
{
get
{
return this._LR001;
}
set
{
if ((this._LR001 != value))
{
this._LR001 = value;
}
}
}

[Column(Storage = "_LR006", DbType = "Decimal(24,8)")]
public System.Nullable<decimal> LR006
{
get
{
return this._LR006;
}
set
{
if ((this._LR006 != value))
{
this._LR006 = value;
}
}
}
}

ff_1211 2010-02-24
  • 打赏
  • 举报
回复
动软不错吧!我用的是它
十八道胡同 2010-02-24
  • 打赏
  • 举报
回复
引用 8 楼 xuyiazl 的回复:
引用 7 楼 lcl_data 的回复:http://www.cnblogs.com/huxj/archive/2009/11/21/1607791.html form  QQ

找到办法了  直接linq to sql 生成   

漆黑一片~~~


当散分帖了~

代码贴出来看看吧
TomFoolKitty 2010-02-24
  • 打赏
  • 举报
回复
散分啊,接分。。。。。。。。
灵雨飘零 2010-02-24
  • 打赏
  • 举报
回复
动软.Net代码生成器


bucuo
泡面之夏 2010-02-24
  • 打赏
  • 举报
回复
动软.Net代码生成器 ???
xuyiazl 2010-02-24
  • 打赏
  • 举报
回复
引用 7 楼 lcl_data 的回复:
http://www.cnblogs.com/huxj/archive/2009/11/21/1607791.html

form  QQ


找到办法了 直接linq to sql 生成

漆黑一片~~~


当散分帖了~
十八道胡同 2010-02-24
  • 打赏
  • 举报
回复
http://www.cnblogs.com/huxj/archive/2009/11/21/1607791.html

form QQ
十八道胡同 2010-02-24
  • 打赏
  • 举报
回复
路过。。。
帮顶



xuyiazl 2010-02-24
  • 打赏
  • 举报
回复
动网的比较干净 但是只能生成 表的 实体
YLMuMu 2010-02-24
  • 打赏
  • 举报
回复
没有用过代码生成器,现在的代码量还不是很大啊 呵呵
xuyiazl 2010-02-24
  • 打赏
  • 举报
回复
引用 2 楼 wuyazhe 的回复:
视图是什么,是不是数据库的视图?


嗯 是数据库的视图~
兔子-顾问 2010-02-24
  • 打赏
  • 举报
回复
视图是什么,是不是数据库的视图?
messi_yang 2010-02-24
  • 打赏
  • 举报
回复
沒有哦··幫你頂哈·········

62,041

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术交流专区
javascript云原生 企业社区
社区管理员
  • ASP.NET
  • .Net开发者社区
  • R小R
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

.NET 社区是一个围绕开源 .NET 的开放、热情、创新、包容的技术社区。社区致力于为广大 .NET 爱好者提供一个良好的知识共享、协同互助的 .NET 技术交流环境。我们尊重不同意见,支持健康理性的辩论和互动,反对歧视和攻击。

希望和大家一起共同营造一个活跃、友好的社区氛围。

试试用AI创作助手写篇文章吧