Recently studied the MVC, EF and other related technologies, wrote a set of Project architecture. Just change the EF model, build the database, and convert the T4 template. The data layer and the business layer can be generated automatically.The main technology used:1, EF Entity Framework.2, spring.net Dependency injection.3, encapsulation, inheritance, polymorphism.3, low coupling three layers.4. T4 Template......Recently, I wrote a code
In the app development project, sometimes we can use APK anti-compilation to learn from other people's ideas, but must not be used for improper use! Understand the anti-compilation programmer also need not worry, can learn more about the Application security encryption technology , so that you do not have to worry about your app is anti-compilation! Of course the purpose of this article is to share.APK anti-compilation generator source
The connected database is SQL server2008, so the file you need is Sqljdbc4.jar
The Lib libraries you use are:
Create a new src folder under the Lib Library directory to hold the generated files, and then create a new Generatorconfig.xml
The code inside is:
Finally, locate the root directory of Lib under the CMD console and execute the following statement
Java-jar Mybatis-generator-core
.
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 Classic Mode for the application pool.
9. In the browser, enter http: // localhost/ERP/,
Using zxing to realize the embedded image of two-dimensional code generator has certain reference value, as follows:
The basic idea is to use the zxing generated two-dimensional code picture, and then read the picture, insert the icon in it, and then the entire output picture.
Recent projects need to generate two-dimensional
the _defaultconfig field in the BusinessEntity class to modify the key's default value.In addition, the problem with the Doodad project is that the connection string is not initialized (possibly a template bug) and the code is as follows:Internal string _raw = "";Virtual public string ConnectionString{Get{return _raw;}Set{_raw = value;}}Although it is possible to assign a property connectionstring to an attribute manually in the application, each bus
Note: Please open the WLAN hotspot first, open the method will not be introduced to you.
1. In standard mode, click "Settings".
2. Click "More connection Settings".
3. Click on "WLAN Hotspot and network share".
4. Click "Move Hotspot".
5. Click on "Two-dimensional code generator".
6. The mobile phone will quickly generate a two-dimensional
Although the pagination function is provided in the GridView, we are still used to retrieving the required data. The AspNetPager control is used here and is free of charge. Of course it is not an advertisement, it is also suitable for your own use after experiment with a lot of controls, combined with the code generator can quickly generate pagination GridView
AspNetPager official site: Download to dll and
PHP Two-dimensional code generator
(1) Download the PHP QR code library on the official website, download the source files and extract them to the Phpqrcode directory.
(2) Create a script file create_png.php add the user form on the page with the following code:
Input text:
Please select size:
for ($i =1; $i
if
In practice, we need to write a large number of programs, for example, to convert a table into a class object or write a method to call a stored procedure with N parameters, You need to manually enter a large amount of code, and there is a lot of repeated code. To avoid a lot of repetitive work and work convenience, I wrote such a simple code
-threaded backup database, task startup shutdown asynchronous operationDatabase Restore : Historical backup record, restore database or single table, statistics backup time and file sizeSQL Editor: Powerful SQL Editor, support edit Statement complex query statement, generate dynamic report, export ExcelAccess records: Record the time of each IP visit, the source region, the network operator, and the number of visits and detailed times per IPIP blacklist: Blocked IP blocked access to website fore
, task startup shutdown asynchronous operationDatabase Restore : Historical backup record, restore database or single table, statistics backup time and file sizeSQL Editor: Powerful SQL Editor, support edit Statement complex query statement, generate dynamic report, export ExcelAccess records: Record the time of each IP visit, the source region, the network operator, and the number of visits and detailed times per IPIP blacklist: Blocked IP blocked access to website foreground - . Traffic s
shutdown asynchronous operationDatabase Restore : Historical backup record, restore database or single table, statistics backup time and file sizeSQL Editor: Powerful SQL Editor, support edit Statement complex query statement, generate dynamic report, export ExcelAccess records: Record the time of each IP visit, the source region, the network operator, and the number of visits and detailed times per IPIP blacklist: Blocked IP blocked access to website foreground - . Traffic statistics: PV c
'// A simple code generator"'// For large database operations, there are a lot of repetitive code similar to variables, attributes, and functions for field operations'// If you rewrite them one by one, it is annoying, so you have a small program to do this part of the work.Public Class FrmPropertyCodeInherits System. Windows. Forms. Form# Region "
Codebuilder is a tool that generates three-tier structures, entity models, and other code through template transformations by getting database table and field definitions.Compared to other similar code generators, Codebuilder has several uncommon features:Multiple data sourcesSupports SQL Server, Oracle, MySQL, SQLite, PostgreSQL, Firebird, or OLE DB-provided drivers, but can also use Power Designer documen
quotation marks, these quotes must be escaped with the \ character. A directive is usually the first element in a template file or contained file.2. Parameter directivesWith Instruction format:"full.typename" name= "parametername " #>3. Output instructionsexpressed as Instruction format:". Filenameextension" encoding="encoding " #>extension= ". cs" Specifies the extension of the build file.encoding= "Encoding" specifies the encoding of the generated file.4. Assembly Directivesas , to add an
Step 1:New Solution:Step 2:Use a dynamic software code generator01. Tools => Options => Basic settings (set the top-level namespace)02. Set class naming rules03. Add field type ing (corresponding to the SQL version)Step 3: Add a server01. Right-click the database to be generated and choose "generate net project"> "simple three-tier structure"> "Next ".02. Select All Tables except the last one:03. start generating. Get the template generated by Neusoft
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.