Reminder: A. Project development environment: M y E clipse6.5 + jdk1.6 + Tomcat6.0; B. The database currently tested has MYSQL5, oracle10g, SqlServer200 C. Google Chrome is recommended, and the easy UI uses other browsers to load slow project deployment steps:The first step. Decompression procedure, import myeclipse If there is no Java EE support, need to add;Step two. Modify the configuration file[1]. Code
The CHFMake code generator has been accompanied by my growth and progress. At the beginning, I wrote this little tool in my senior year. It was just used to view the table structure of the database!
I have been writing this article for more than three years. The code in this tool shows my progress process, from the initial process to the final interface-oriented
MyBatis code generator (plugin)--Install the plugin:1. Unzip the Mybatis_generator_1.3.1.zip file2. Copy the Features,pougins folder to the C:\Users\chufeng\MyEclipse\MyEclipse10\soft\mybatis directory (C:\Users\pc_name\MyEclipse\ MyEclipse 10\ for myeclipse installation directory, soft\mybaits can create it yourself)3
Template engine xtemplate is an imitation T4 design engine, functionally basic and T4 consistent (template syntax is fully compatible with T4, module masthead instructions are partially compatible).Their own design template engine, is for the code generator, website template, mail template and other occasions, that is, to be able to take out alone, powerful and easy to control. T4 is a good engine, but its
The template code generation function has been integrated into the dynamic software code generator, but some old users do not know this function or new users do not know it too well. Let's take a look at this function briefly, custom Users and advanced users can generate their own code more flexibly and conveniently.
1
schemaprovider{Static schemaprovider (){}Static providerbase provider;Public static providerbase provider {get {return provider ;}}Public static providerbase instance{
If (provider = NULL)
{
Swith (databasetype)
{
Case databasetype. sqlserver:
Provider = new sqlserverprovider ();
Break;
Case databasetype. MySQL:
Provider = new mysqlprovider ();
Break;
}
}Return provider}}
The configuration file will be used in the formal provider example. I have simplified it here and ca
Code to generate C + + language code
This feature is implemented by the T_cpp_generator class (defined and implemented in file t_cpp_generator.cc), directly inheriting to the T_oop_generator class (this class is the direct base class for all object-oriented language generator classes, encapsulating the object-oriented
Recently encountered a requirement to generate Morse code audio files based on input text. After a few searches, I decided to write a generator myself.
Because I wanted to access my Morse code audio files through the web, I decided to use PHP as my main programming language. The above shows a webpage that starts to generate Moss
Dbtocode is an automatic code generator designed for C # Database programmers. The code generated by dbtocode is based on the object-oriented idea and three-tier architecture design, combining the classic ideas and design patterns in petshop, we integrate some ideas such as factory patterns and reflection mechanisms. T
About Return of a functionLi = [11,22,33,44]def f1 (ARG):Arg.append (55)Li = F1 (LI)Print (LI)Because li = F1 (LI) is actually assigned a return of F1, in this case the function F1 does not define return, so the default return is NoneSo the value of Li should be noneIf it isLi = [11,22,33,44]def f1 (ARG):Arg.append (55)F1 (LI)Print (LI)Because the arguments passed by the function are actually references to the arguments, the changes to the arguments in the function affect the original parameters
Tags: des style blog io ar color os sp forA code generator is often used to record data from a script: #regionSql-sqlserverPrivate stringSqltablelist =@"SELECT So.name, Convert (VARCHAR), ep.[ Value]) as [description] from sysobjects SO (NOLOCK) left JOIN sys.extended_properties EP (Noloc K) on ep
Today, my colleague was surprised to tell me that I found an online EditPlus registration code generator, and I hurried to look at it, and really, here.
EXE registration machine virus too many, pure JS online registration machine can be relieved.
The author is from other people's registration machine disassembly and then find the algorithm, but also to my surprise, this author Demon unexpectedly is engaged
Dynamic SoftCodeThe generator has integrated the template code generation function, but many old users do not know it or new users do not know it too well. Let's take a look at this function briefly, custom Users and advanced users can generate their own code more flexibly and conveniently.
1. Main Interface:
2.On the left-side [database view], right-cl
conversion code actionform to the entity class, provided that the code for the property in Actionform is generated by the code generator.
The core of the code is the mapping of database fields and the generation of files, and the mapping of the database mainly uses ResultS
us to learn the fluent API related to EF 4.1.
public class Parent{public Parent(){this.Children = new List
After having these classes, we can also view the corresponding Entity Data Model and corresponding DDL through the gadgets. Even better, the gadgets can also produce code for EF generated view for us to improve our performance when using EF and code first.
It is worth mentioning that the Entity Da
Because the project needs to write a lot of repeatedCodeAnd model entity class, all use the template function of the Code Generator to generate the entity and Dal of the csla project.
Perform a simple analysis based on the template usage.
View code
Foreach(Columninfo CInHost. Keys ){If("Uniqueidentifier"= C. t
Codeplus V2.0
CodeA generator is a generation condition based on database information and user-specified conditions, automatic Generation of all regular code generation tools such as stored procedures, data metadata, object information, and interface information.
Currently, codeplusv2.0 provides MSSQL-based databases to generate templates for various layers of code
.
4. Execute ERP. SQL
5. Copy the ERP folder to c: \ Inetpub \ wwwroot.
6. Open the iis7 manager, convert the ERP under the default website to an application, and select ASP. NET v4.0 integration mode for the application pool.
7. Copy the permissionws folder to c: \ Inetpub \ wwwroot.
8. Open the iis7 manager and convert permissionws under the default website to applications. select ASP. NET v4.0 C
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.