As the software industry increased competition in the enterprise programmers to develop code efficiency and the quality of increasingly high demand.Analysis prepared by the programmers code and found that about 80% of the code is similar,But if we can develop a common database application system source code generation platform to complete this part of the work,The work will enable programmers code efficiency and quality greatly improved.This paper is a generic description of this database application system source code generation platform for the development process.This paper will discuss the reflection based on the C # mechanisms for the database application system source code generation platform (as below :CSharpGen system) how to achieve it primarily C #.net system architecture,OOP technology to the design process,the use of large-scale application of MSSQL databases; and the use of advanced three-layer model structure,Major Implementation of the C # corresponding database table base class code automatically generated,including the generation attributes,add,modify,delete,Inquiries existence,Model class structure,and other basic code snippet,so that programmers can save a lot of mechanical input of time and duplication of work,and will concentrate on the core business logic development.CSharpGen also provides a SQL script generation,storage process generation,Automatic code generation is derived documents the development of a number of commonly used functions,you can very easily perform project development.In this paper,a total of four chapters :the first chapter on the subject CSharpGen systems development background,content,development goals,significance; The second chapter describes the system CSharpGen overall planning,CSharpGen system introduced in the analysis of requirements and analyze feasible,the structure analysis; The third chapter describes the CSharpGen system design,introduced functions,database design,using technology and development tools,the key library,multi-layered structure; Chapter IV presents a summary CSharpGen system design; Finally,references and thanks.Keywords :C #,reflex mechanism,AJAX,source code generation
或者
Competes along with the software profession in intensifies day by day,the enterprise is more and more high to programmer's developmentefficiency and the code quality requirement.Through analyzes the codewhich the programmer compiles,discovered has 80% about the code issimilar,if can develop a universal database application system sourcecode to produce the platform to complete this part of work,will causeprogrammer's working efficiency and the code quality big enhancement.The present paper is describes this kind of universal databaseapplication system source code to produce the platform the performancehistory.This article will discuss based on the C# reflection mechanismdatabase application system source code produces the platform (underto be called:CSharpGen system) how realizes,it mainly uses the C#net system skeleton,take the OOP technology as the design flow,usesthe MSSQL large-scale application database; And the use advanced 3patterns overhead construction,mainly realized has corresponded inthe database in C# the table base class code automatic production,including the production attribute,the increase,the revision,thedeletion,the inquiry,a Model kind of structure foundation code pieceand so on the existence,enabled the programmer to be allowed to savethe time and the repetition work which the massive machineries input,but concentrated the energy to the core business logic development.Atthe same time CSharpGen also provided the SQL script production,thememory process production,the code production has automaticallyderived the function which the document and so on in many developmentswork commonly used arrived,you were allowed very conveniently tocarry on the project development.Present paper altogether four chapters:First chapter narrated the CSharpGen system topic developmentbackground,the content,the development goal,the significance; Second chapter introduced the CSharpGen system overall plan,mainlyintroduces the CSharpGen system the demand analysis,may all thevarious professions analysis,the system structure analysis; Third chapter introduced the CSharpGen system design,mainlyintroduced the function,the database design,use the technology aswell as the development kit,the key class storehouse,themultilayered overhead construction; Fourth chapter introduced the CSharpGen system design summary; Finally is the reference and expresses thanks.Key word:C#,reflection mechanism,AJAX,source code production