Magicodes.net Framework Path-let Magicodes.net help you write code

Source: Internet
Author: User

Time is always fast, and I hardly have time to quietly write blogs and perfect documents. But finally the framework is moving forward, and my plan is to make this framework mature and stable before the end of the year (the Gregorian calendar).

For a long time, I tried a lot of technology I didn't touch before or useless technology, such as Knockoutjs, OData, T4, and so on, may have gone a lot of detours, perhaps the role of the framework is not big, but it is very valuable to me. Only when used to know its availability and the application of the scene, have not been used to have no say.

The framework is also constantly re-construction, I do not want to copy other people's way, I just want to do a unique framework, quiet coding, go forward, how a characteristic method? Such as:

    1. Plug-in frame
    2. Responsive layouts and front-to-back support for mobile devices
    3. Convenient business code generation, such as crud generation, and forms that support the creation of corresponding presentation components based on different data types or attributes.
    4. From framework to plug-in including code generation templates take the open source route for easy comprehension and customization
    5. Multiple use at a time: including common business plug-ins, policies and models (log exceptions, payment policies, background rights Management, CMS, process engine, platform, document online viewer, etc.)
    6. Multiple sets of front-end themes
    7. WebAPI & OData the Flexible Interface
    8. Data access based on Codefirst mode, incorporating data structure changes into each code migration
    9. Developer Panel

Prior to this, we would like to thank TJCCCC and Wood Wancheng for their support of this project.

Now let's say a little bit more about the latest.

Open source

The code was quietly moved to GitHub two months ago, and why is it quiet, because I just want to be a silent, nice-looking, coded silently. Programmers who don't use git these days are definitely not good programmers, and I'm almost out of it, so hurry up. Ha ha. It's good to try.

The new UI

The website UI has been redesigned and purchased Ace Bootstrap, thanks to TJCCCC for contributing to this project.

Official ticket: http://www.magicodes.net/

Designer: TJCCCC

Background UI:

Contributed by: TJCCCC

Just the beginning of the outline, things are constantly changing, now feel that the IFRAME is not very cool, perhaps the entire background UI will use the new architecture. ~~~~

Blog

The design of the blog has come out, the table structure is basically completed, but has not yet begun to bind ~ ~ ~

Interface First glance:

Address: Http://www.magicodes.net/blogs

Chief Designer: TJCCCC

Document & Document Viewer

Document? Ah, again to urge more!

The document has been written in part and is constantly being perfected. PS: The most tragic thing is that when I write a part, I find that this part has been reconstructed again.

I was going to host the document to Onedriver's web Office app, and found it was a wall, so ~ ~

The framework integrates a document viewer for easy viewing of documents online. Currently only the PDF viewer plugin is implemented.

Ferry ticket: http://www.magicodes.net/DocumentViewer?contentType=application/pdf&filePath=upload/Magicodes.NET%E6%A1 %86%e6%9e%b6%e8%af%b4%e6%98%8e%e6%96%87%e6%a1%a3.pdf

Later, you'll consider docking Web Office Web App Server for Office open and edit online.

More file types will be supported later, friends who are interested in doing it.

Data Loss

This is a heavy topic, this year no money really bad, although the previous commitment to do not delete the file test, but unfortunately, because the home to do the full moon forgotten the renewal of the Hong Kong server, more than 3 days virtual machine was deleted!!! So I'm sorry to inform you that the previously registered and logged in data have all been lost.

code Generation

Code generation this block has always been my core concern, how to reduce the repetitive logic of business development, has been my tireless pursuit. So magicodes.net can now generate a simple CRUD code ~ ~

The slogan first sounded: Still working overtime to write code? Are you constantly rewriting business logic? Still in one of the patched? Too low, let magicodes.net help you to write code. Gather the wisdom of the Magicodes.net team and let Magicodes.net help you write your code.

Solution Core Directory:

For details, see:

However, before I can finish writing, you should read the code first. T4 generated this piece I took a lot of detours, so I decided to start refactoring again around the end of the month. First look at the current results:

Configure view and controller build effects:

Related T4 template location:

From the controller to the UI are code generation HA, generate ready-to-use ~ ~

Just a configuration build, let's look at Crud generation:

This is just an initial attempt, and then look at one:

Let's look at the T4 template:

Let's take a look at Users.tt's specific content:

<#@ template debug= "false" hostspecific= "true" language= "C #" #>
<#@ output extension= ". cshtml" encoding= "Utf-8" #>
<#@ Assembly Name= "$ (TargetPath)" #>
<#@ import namespace= "Magicodes.Mvc.Default.Areas.Admin.Models" #>
<#@ include file= "$ (solutiondir) \t4\magicodes.t4\odatagrid\header.tt" #>
<#
Odatagridhelper odatagridhelper=new Odatagridhelper (typeof (Userviewmodel));
odatagridhelper.params["_param_title"]= "User Management";
odatagridhelper.params["_param_url"]= "/odata/users";
odatagridhelper.params["_param_addmodel"]=jsonconvert.serializeobject (new Userviewmodel () {Id=Guid.NewGuid (). ToString ()});
#>
<#@ include file= "$ (solutiondir) \t4\magicodes.t4\odatagrid\footer.tt" #>

As you can see, this is just a reference.

Code generation come on, I've tried a lot, I've spent a lot of effort, but I've learned a lot. At present, we are going to squeeze the time to reconstruct the next meeting, T4 code generation will be more stunning. At the same time I also hope that interested friends join with me!!

Other

Other details modification and optimization ~ ~ Too lazy to think about it.

Sir, but you finished? If you can, just enjoy it. Our servers are from your support.

Magicodes.net Framework Path-let Magicodes.net help you write code

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.