C#,根据Model生成sql语,并生成sql参数(使用Attribute字段特性)
namespace 根据Model生成Sql {public class KeyAttribute : Attribute{//注意KeyAttribute 前面key可以随意写但后面要为Attributepublic bool IsIncrement { get; set; }} } namespace 根据Model生成Sql {public class TestModel{//KeyAttribute 这个Key//如果 TestAttribute…