From scratch to write your own C # framework (1) - Introduction from scratch to write your own C # framework (1) - Introduction

Original: scratch to write your own C # framework (1) - Introduction

  I remember fifteen years ago, self-programming, holding a thick book C language, want to use the machine do not know what the compiler to perform the examples in the book. When the self-study at the University of ASP, since there are not a student and friend learning the language, only the day mixed in drawing close shop desperately assiduously twelve years ago. And then later almost, a lot of different self-knowledge, can only have been in silence overcome one difficulty after another. So in recent years with a number of fresh graduates or newcomers only 2012 experience will speak with them: you are now so happy, there are problems you can find the degree of your mother, you can also find me to solve. As someone who can realize how time just getting started, there is no systematic presentation and instructor, will go a lot of detours, and I do not know how many have experienced sleepless nights, white hair do not know how many roots.

  While working for so many years, but their growth has not recorded bit by bit, I feel very sorry, a lot of technology now forgotten. The blog also registered in the blog garden for several years, has been empty until July of last year, just try to process their own learning SubSonic3.0 slowly recorded, and then every day on the blog park to brush page, in the process learned a lot of things from you big cow's body, thank you very selfless sharing.

  In the process of blogging, the envy of many big God can write a series of articles, that although not a cow, and I want to try it on their own for so many years the technology to do something summarize, write about a project not to have to the final line of the process, we hope to give beginners an understanding of the window.

  This series of articles is mainly about is how the preparation of the project, needs analysis, framework design, coding, testing to deployment server, to tell considerations in the development process and the use of related plug-ins to create ORM framework for a quick development (of course you you can also use this series about ideas, use other plug-ins to develop your own framework).

  As the past year has been in contact with SubSonic3.0 use SubSonic2.2, also exposed a lot of friends still in use or are learning, write about how you can use it to develop SubSonic3.0 ORM framework, we want to the help. Although SubSonic plug-ins, there are many of my friends say it is obsolete, no one has been in continued use ...... but I still stick to their views, whether SubSonic ORM framework or other plug-ins, for as long as their own the company is the best. Of course, after the project are subject to change and may also use other ORM plug-ins, ha ha ...

 

  This article is for what friend?

  Learned related development language beginner or have had some experience in the development but the lack of experience on the development of the framework architecture and people.

 

  Following is a brief talk about the features of this framework:

  In the last few years, I have been doing development framework, different languages ​​developed several different frameworks, to say what is a common feature of these frameworks is: it is fast, a lot of colleagues and friends use my a rear frame, gave a positive evaluation, the code amount can be reduced more than 60%, but naturally the development cycle can be compressed more than 50% of the encoding time (actually using T4 or related template code generation tools have this feeling ). Not only can develop very fast completion and the second development is also very convenient (except for the first couple of years ago to write their own framework, huh ......), of course, performance is good.

 

table of Contents:

From scratch to write your own C # framework (1) - Introduction
from scratch to write your own C # framework (2) - Preparation before development
from scratch to write your own C # framework (3) - developed specification
from scratch write your own C # framework (4) - documents written explanation
from scratch to write your own C # framework (5) - describes the three-tier architecture
from scratch to write your own C # framework (6) - SubSonic3.0 plug presentations
from zero start writing your own C # framework (7) - demand analysis
from scratch to write your own C # framework (8) - manage system function design
from scratch to write your own C # framework (9) - database design and create
from zero C # start writing own frame (10) - the project planning and Gantt
written from scratch C # own frame (11) - means layer
scratch C # write their own frame (12) - code generation data layer
C # written from scratch their frame (13) - generates a logic level code
written from scratch C # own frame (14) - Web layer
written from scratch C # own frame (15) - online user management - Single and multi-user single-user account login control
from scratch to write your own C # framework (16) - Permission Module - control single user login privileges
from scratch to write your own C # framework (17) - Permission Module - Menu page and access control buttons
from scratch to write your own C # framework (18) - permission module - recording all land users
from scratch to write your own C # framework (19) - Category list pages related functions package
from scratch write your own C # framework (20) - content edit page
From scratch to write your own C # framework (21) - information publishing module
from scratch to write your own C # framework (22) - test
from scratch to write your own C # framework (23) - site deployment and documentation

This is not the final catalog will be adjusted according to the specific circumstances in the preparation process, if you want to get more specific description of the development process, it will be more than the initial estimate of the number of directories on 2-3 times. The project just completed common functions ORM framework and back-end systems, the contents of the front and other areas, if this series is very popular, then realized it would consider continuing to write.

 

  to sum up

  To write this series of articles, after friends know say a big project ah ...... that is also, to all finished, but also a long time, when the level is limited to not know how many will come minefields, it is unclear whether the contents of written expression clearly, pear Alexander @ _ @, but things are forced out, in the hope that the process of writing I could get a good lift.

 

  This series of articles I will explain the process of developing and updating source generation synchrotron up, if you reference a certain article or used some open source will be detailed attribution, which belongs to original author, writing this series of articles mainly on so many years of work to make a conclusion, also hoping to help friends joined the line, thank you for your attention, if you think this series has helped you, please help click on the recommendations.

 

  

 Disclaimer: This article from the original was released in AllEmpty Park blog, welcome to reprint, without the consent declared by this section must be preserved, and the original link is given in the apparent position of the article page, otherwise reserved the right to pursue legal responsibilities . If you have questions, you can [email protected] contact me, thank you very much.

  

  This publication edited content, as long as the main order and common learning and common progress, interested friends may Gaga Q group: 327 360 708 or Email me ([email protected]), we explore together.

  More, please view Note blog: http://www.cnblogs.com/EmptyFS/

 

Original: scratch to write your own C # framework (1) - Introduction

  记得十五年前自学编程时,拿着C语言厚厚的书,想要上机都不知道要用什么编译器来执行书中的例子。十二年前在大学自学ASP时,由于身边没有一位同学和朋友学习这种语言,也只能整天混在图收馆里拼命的啃书。而再后来也差不多,自学了很多不同的知识,都一直只能自己默默的克服一个又一个困难。所以这几年带一些应届生或只有一两年经验的新人时,都会同他们讲:你们现在太幸福了,有问题可以找度娘,还可以找我来解决。做为过来人,能深深的体会到刚入门的时候,没有系统的介绍和老师指导,会多走很多很多弯路和经历过不知多少不眠之夜,头发都不知白了多少根。

  虽然工作了这么多年,但一直都没有将自己成长的点点滴滴记录下来,觉得非常的遗憾,很多技术现在都忘了。而在博客园注册博客也有好几年了,也一直空空的,直到去年的七月份,才尝试将自己学习SubSonic3.0的过程慢慢记录下来,然后天天上博客园来刷页面,在这个过程中从各位大牛的身上学到了很多很多东西,非常感谢大家无私的分享。

  在写博的过程中,非常羡慕众多大神能写了一系列的文章,自己虽然不是个牛人,也想尝试一下,对自己这么多年的技术做一下总结,写一写一个项目无到有,到最终上线的过程,希望能给初学者一个了解的窗口。

  本系列文章主要讲的就是怎么从项目的准备、需求分析、框架设计、编码、测试到服务器的部署,来讲述开发过程中的注意事项和使用相关插件来打造一个快捷开发的ORM框架(当然你也可以使用本系列中讲述的思想,使用其他插件来开发你自己的框架)。

  由于近一年时间一直都在接触和使用SubSonic2.2与SubSonic3.0,也接触了不少还在使用或正在学习的朋友,所以写写如何使用SubSonic3.0来开发ORM框架,希望对大家有所帮助。虽然SubSonic插件,也有不少朋友都说它已经过时了、已经没什么人在继续使用了......不过我还是坚持自己的看法,无论是SubSonic还是其他ORM框架插件,只要适合自己的适合公司的就是最好的。当然以后项目有变动也可能会使用其它ORM插件,哈哈...

 

  本文章适合什么朋友?

  学过相关开发语言的初学者或有过一定开发经验但对开发与框架架构缺乏经验的人。

 

  下面简单说说这个框架的特点:

  在最近几年时间里,我一直在做框架开发,用不同的语言开发了几个不同的框架,要说这几个框架的共同特点是什么:那就是快,不少同事朋友使用了我的框架后,都给了正面的评价,可以减少60%以上的代码量,而开发周期也自然可以压缩50%以上的编码时间(实际上使用了T4模板或相关代码生成工具的都有这种感觉)。不但可以非常快速的完成功能开发,而且进行二次开发也非常方便快捷(除了自己几年前写的第一个框架,呵呵......),当然性能也是不错的。

 

目录:

从零开始编写自己的C#框架(1)——前言
从零开始编写自己的C#框架(2)——开发前的准备工作
从零开始编写自己的C#框架(3)——开发规范
从零开始编写自己的C#框架(4)——文档编写说明
从零开始编写自己的C#框架(5)——三层架构介绍
从零开始编写自己的C#框架(6)——SubSonic3.0插件介绍
从零开始编写自己的C#框架(7)——需求分析
从零开始编写自己的C#框架(8)——后台管理系统功能设计
从零开始编写自己的C#框架(9)——数据库设计与创建
从零开始编写自己的C#框架(10)——项目实施计划与甘特图
从零开始编写自己的C#框架(11)——工具层
从零开始编写自己的C#框架(12)——数据层代码生成
从零开始编写自己的C#框架(13)——逻辑层代码生成
从零开始编写自己的C#框架(14)——Web层
从零开始编写自己的C#框架(15)——在线用户管理——单账号单用户与多用户登陆控制
从零开始编写自己的C#框架(16)——权限模块——控制单用户登陆权限
从零开始编写自己的C#框架(17)——权限模块——菜单、页面与按钮权限控制
从零开始编写自己的C#框架(18)——权限模块——记录登陆用户的所有
从零开始编写自己的C#框架(19)——分类列表页面相关功能封装
从零开始编写自己的C#框架(20)——内容编辑页面
从零开始编写自己的C#框架(21)——信息发布模块
从零开始编写自己的C#框架(22)——测试
从零开始编写自己的C#框架(23)——网站部署及文档

这不是最终的目录,会在编写的过程中根据具体情况作出调整,如果想要对开发过程描述得更加具体的话,初步估计目录数量会多上2至3倍。本项目只是完成ORM框架以及后端系统的常用功能,对前端与其他方面的内容,如果本系列很受欢迎的话会考虑继续编写实现出来。

 

  总结

  要写这一系列文章,朋友们知道后都说好大的工程啊......说的也是,要全部写完,也要好长的时间,水平有限到时也不知道会碰到多少雷区,也不清楚写出来的内容是否表达得清楚,鸭梨山大@_@,不过事情都是逼出来的,希望在写的过程中自己也能得到一个好的提升。

 

  本系列文章会将我开发的过程说明与源代同步更新上来,如果引用了某些文章或使用了某些开源代码也会详细标明出处,其版权归原作者所有,编写本系列文章主要是对自己这么多年工作做一个总结,也希望能帮助到刚入行的朋友,谢谢你的关注,如果觉得本系列文章有帮到你,请帮忙点击推荐。

 

  

 版权声明:

  本文由AllEmpty原创并发布于博客园,欢迎转载,未经本人同意必须保留此段声明,且在文章页面明显位置给出原文链接,否则保留追究法律责任的权利。如有问题,可以通过[email protected] 联系我,非常感谢。

  发表本编内容,只要主为了和大家共同学习共同进步,有兴趣的朋友可以加加Q群:327360708 或Email给我([email protected]),大家一起探讨。

  更多内容,敬请观注博客:http://www.cnblogs.com/EmptyFS/

 

Guess you like

Origin www.cnblogs.com/owenzh/p/11091008.html