Ryan's Blog - 个人工作日志
open-menu closeme
首页
链接 icon
PDF 删除回车 资源下载 过程考核
Chinese Português
github rss
  • ASP.NET三层架构源码(CodeSmith版)之十:View-Model层

    calendar Dec 28, 2015 · 1 分钟 阅读 · ASP.NET CodeSmith 三层架构

    动软代码生成器生成的ASP.NET三层架构代码比较规范,是学习ASP.NET的好例子 此三层架构改造自动软的工厂模式模板,使用CodeSmith进行重写,以方便大家修改模板文件 以下是针对视图Model层的源码: <%@ CodeTemplate Inherits="CodeTemplate" language="C#" TargetLanguage="Text" Description="NetTiers main template."Debug="True" ResponseEncoding="UTF-8"%> <%@ Assembly Name="SchemaExplorer" %> <%@ Import Namespace="SchemaExplorer" %> <%@ Import Namespace="System.Text" %> <%@ Property Name="Namespace" Type="String" Category="Context" Description="Namespace"%> <%@ Property Name="Author" Type="String" Category="Context" Description="Author" Default="chenr"%> <%@ Property Name="ViewPrefix" Type="System.String" Default="T" Category="Context" Description="The prefix to remove from table names" %> <%@ Property Name="ViewName" Type="ViewSchema" DeepLoad="True" Optional="False" Category="01. Getting Started - Required" Description=""%> /*------------------------------------------------ // File Name:m<%=ClearPrefix(ViewName.Name) %>.cs // File Description:<%=ClearPrefix(ViewName.


    阅读更多
  • ASP.NET三层架构源码(CodeSmith版)之九:View-IDAL层(数据访问抽象层)

    calendar Dec 28, 2015 · 1 分钟 阅读 · ASP.NET CodeSmith 三层架构

    动软代码生成器生成的ASP.NET三层架构代码比较规范,是学习ASP.NET的好例子 此三层架构改造自动软的工厂模式模板,使用CodeSmith进行重写,以方便大家修改模板文件 以下是针对视图IDAL层的源码: <%@ CodeTemplate Language="C#" TargetLanguage="C#" Description="Generates a class including a special informational header" %> <%@ Assembly Name="SchemaExplorer" %> <%@ Import Namespace="SchemaExplorer" %> <%@ Import Namespace="System.Text" %> <%@ Property Name="Namespace" Type="String" Category="Context" Description="NameSpace"%> <%@ Property Name="Author" Type="String" Category="Context" Description="Author" Default="chenr"%> <%@ Property Name="ViewName" Type="ViewSchema" DeepLoad="True" Optional="False" Category="01. Getting Started - Required" Description="" %> /*------------------------------------------------ // File Name:I<%=ClearPrefix(ViewName.Name) %>.cs // File Description:<%=ClearPrefix(ViewName.Name) %> Interface // Author:<%=Author%> // Create Time:<%= DateTime.Now.ToString("yyyy/MM/dd HH:mm:ss"


    阅读更多
  • ASP.NET三层架构源码(CodeSmith版)之八:View-BLL层

    calendar Dec 28, 2015 · 2 分钟 阅读 · ASP.NET CodeSmith 三层架构

    动软代码生成器生成的ASP.NET三层架构代码比较规范,是学习ASP.NET的好例子 此三层架构改造自动软的工厂模式模板,使用CodeSmith进行重写,以方便大家修改模板文件 以下是针对视图BLL层的源码: <%@ CodeTemplate Language="C#" TargetLanguage="C#" Description="Generates a class including a special informational header" %> <%@ Assembly Name="SchemaExplorer" %> <%@ Import Namespace="SchemaExplorer" %> <%@ Import Namespace="System.Text" %> <%@ Property Name="ViewName" Type="ViewSchema" DeepLoad="True" Optional="False" Category="01. Getting Started - Required" Description="" %> <%@ Property Name="Namespace" Type="String" Category="Context" Description="NameSpace"%> <%@ Property Name="Author" Type="String" Category="Context" Description="Author" Default="chenr"%> <%@ Property Name="ViewPrefix" Type="System.String" Default="T" Category="Context" Description="The prefix to remove from table names" %> /*------------------------------------------------ // File Name:<%=ClearPrefix(ViewName.


    阅读更多
  • ASP.NET三层架构源码(CodeSmith版)之七:Table-所有模板生成

    calendar Dec 28, 2015 · 1 分钟 阅读 · ASP.NET CodeSmith 三层架构

    动软代码生成器生成的ASP.NET三层架构代码比较规范,是学习ASP.NET的好例子 此三层架构改造自动软的工厂模式模板,使用CodeSmith进行重写,以方便大家修改模板文件 以下是针对表格的所有模板同时生成的源码: <%@ CodeTemplate Language="C#" TargetLanguage="Text" Src="" Inherits="" Debug="False" CompilerVersion="v3.5" Description="生成所有模板文件" %> <%-- SchemaExplorer --%> <%@ Assembly Name="SchemaExplorer" %> <%@ Import Namespace="SchemaExplorer" %> <%-- 添加源数据库属性 --%> <%@ Property Name="SourceDatabase" Type="SchemaExplorer.DatabaseSchema" DeepLoad="True" Optional="False" Category="01. Required" Description="Database" %> <%@ Property Name="tName" Type="TableSchema" DeepLoad="True" Optional="True" Category="01. Required" Description="TableName" %> <%@ Property Name="Namespace" Type="String" Category="Context" Description="NameSpace"%> <%@ Property Name="Author" Type="String" Category="Context" Description="Author" Default="chenr"%> <%@ Property Name="TablePrefix" Type="System.String" Default="T" Category="Context" Description="The prefix to remove from table names"


    阅读更多
  • ASP.NET三层架构源码(CodeSmith版)之六:Table-生成DALFactory

    calendar Dec 28, 2015 · 2 分钟 阅读 · ASP.NET CodeSmith 三层架构

    动软代码生成器生成的ASP.NET三层架构代码比较规范,是学习ASP.NET的好例子 此三层架构改造自动软的工厂模式模板,使用CodeSmith进行重写,以方便大家修改模板文件 以下是针对表格的DAL生成工厂的源码: <%@ CodeTemplate Language="C#" TargetLanguage="C#" Src="" Inherits="OutputFileCodeTemplate" Debug="False" CompilerVersion="v3.5" Description="Template description here." %> <%-- SchemaExplorer --%> <%@ Assembly Name="SchemaExplorer" %> <%@ Assembly Name="CodeSmith.BaseTemplates" %> <%@ Assembly Name="CodeSmith.CustomProperties" %> <%@ Import Namespace="SchemaExplorer" %> <%@ Import Namespace="System.Text" %> <%@ Import Namespace="CodeSmith.BaseTemplates" %> <%@ Import Namespace="CodeSmith.CustomProperties" %> <%-- 添加源数据库属性 --%> <%@ Property Name="SourceDatabase" Type="SchemaExplorer.DatabaseSchema" DeepLoad="True" Optional="False" Category="01. GettingStarted - Required" Description="Database" %> <%@ Property Name="Namespace" Type="String" Category="Context" Description="NameSpace" Default="CrsNameSpace"%> <%@ Property Name="


    阅读更多
  • ASP.NET三层架构源码(CodeSmith版)之五:Table-StoreProcedure(存储过程)

    calendar Dec 19, 2015 · 2 分钟 阅读 · ASP.NET CodeSmith 三层架构 动软

    动软代码生成器生成的ASP.NET三层架构代码比较规范,是学习ASP.NET的好例子 此三层架构改造自动软的工厂模式模板,使用CodeSmith进行重写,以方便大家修改模板文件 以下是针对表格的存储过程生成源码: <%@ CodeTemplate Inherits="CodeTemplate" language="C#" TargetLanguage="Text" Description="NetTiers main template."Debug="True" ResponseEncoding="UTF-8"%> <%-- 加载访问数据库的组件SchemaExplorer,并声明其使用的命名空间 --%> <%@ Assembly Name="SchemaExplorer" %> <%@ Import Namespace="SchemaExplorer" %> <%@ Import Namespace="System.Text" %> <%@ Assembly Name="System.Data" %> <%@ Property Name="Author" Type="String" Category="Context" Description="Author" Default="chenr"%> <%@ Property Name="TablePrefix" Type="System.String" Default="T" Category="Context" Description="The prefix to remove from table names" %> <%@ Property Name="bGenOne" Type="Boolean" Category="Context" Description="Generate One Template Or All"%> <%-- 添加源数据库属性 --%> <%@ Property Name="SourceDatabase" Type="SchemaExplorer.DatabaseSchema" DeepLoad="True" Optional="


    阅读更多
  • ASP.NET三层架构源码(CodeSmith版)之四:Table-SQLServerDAL层

    calendar Dec 19, 2015 · 4 分钟 阅读 · ASP.NET CodeSmith 三层架构 动软

    动软代码生成器生成的ASP.NET三层架构代码比较规范,是学习ASP.NET的好例子 此三层架构改造自动软的工厂模式模板,使用CodeSmith进行重写,以方便大家修改模板文件 以下是针对表格的SQLServerDAL层源码: <%@ CodeTemplate Inherits="CodeTemplate" language="C#" TargetLanguage="Text" Description="NetTiers main template."Debug="True" ResponseEncoding="UTF-8"%> <%-- 加载访问数据库的组件SchemaExplorer,并声明其使用的命名空间 --%> <%@ Assembly Name="SchemaExplorer" %> <%@ Import Namespace="SchemaExplorer" %> <%@ Import Namespace="System.Text" %> <%@ Assembly Name="System.Data" %> <%@ Assembly Name="CodeSmith.BaseTemplates" %> <%@ Import Namespace="CodeSmith.BaseTemplates" %> <%@ Assembly Name="CodeSmith.CustomProperties" %> <%@ Import Namespace="CodeSmith.CustomProperties" %> <%@ Import Namespace="System.Text.RegularExpressions" %> <%@ Property Name="Namespace" Type="String" Category="Context" Description="NameSpace" Default="Crs811NameSpace"%> <%@ Property Name="Author" Type="String" Category="Context" Description="Author" Default="chenr"%> <%@ Property Name="TablePrefix" Type="System.String" Default="T" Category="


    阅读更多
  • ASP.NET三层架构源码(CodeSmith版)之三:Table-Model层

    calendar Dec 19, 2015 · 1 分钟 阅读 · ASP.NET CodeSmith 三层架构 动软

    动软代码生成器生成的ASP.NET三层架构代码比较规范,是学习ASP.NET的好例子 此三层架构改造自动软的工厂模式模板,使用CodeSmith进行重写,以方便大家修改模板文件 以下是针对表格的Model层源码: <%@ CodeTemplate Inherits="CodeTemplate" language="C#" TargetLanguage="Text" Description="NetTiers main template."Debug="True" ResponseEncoding="UTF-8"%> <%@ Assembly Name="SchemaExplorer" %> <%@ Import Namespace="SchemaExplorer" %> <%@ Import Namespace="System.Text" %> <%@ Property Name="Namespace" Type="String" Category="Context" Description="Namespace" Default="CrsNamespace"%> <%@ Property Name="Author" Type="String" Category="Context" Description="Author" Default="chenr"%> <%@ Property Name="TablePrefix" Type="System.String" Default="T" Category="Context" Description="The prefix to remove from table names" %> <%@ Property Name="TableName" Type="TableSchema" DeepLoad="True" Optional="False" Category="01. Getting Started - Required" Description=""%> /*------------------------------------------------ // File Name:m<%=ClearPrefix(TableName.Name) %>.cs // File Description:m<%=ClearPrefix(TableName.


    阅读更多
  • ASP.NET三层架构源码(CodeSmith版)之二:Table-IDAL层(数据访问抽象层)

    calendar Dec 19, 2015 · 2 分钟 阅读 · ASP.NET CodeSmith 三层架构 动软

    动软代码生成器生成的ASP.NET三层架构代码比较规范,是学习ASP.NET的好例子 此三层架构改造自动软的工厂模式模板,使用CodeSmith进行重写,以方便大家修改模板文件 以下是针对表格的IDAL层源码: <%@ CodeTemplate Language="C#" TargetLanguage="C#" Description="Generates a class including a special informational header" %> <%@ Assembly Name="SchemaExplorer" %> <%@ Import Namespace="SchemaExplorer" %> <%@ Import Namespace="System.Text" %> <%@ Property Name="Namespace" Type="String" Category="Context" Description="The namespace to use for this class" Default="Crs811NameSpace"%> <%@ Property Name="Author" Type="String" Category="Context" Description="Author" Default="chenr"%> <%@ Property Name="TablePrefix" Type="System.String" Default="T" Category="Context" Description="The prefix to remove from table names" %> <%@ Property Name="TableName" Type="TableSchema" DeepLoad="True" Optional="False" Category="01. Getting Started - Required"


    阅读更多
  • ASP.NET三层架构源码(CodeSmith版)之一:Table-BLL层

    calendar Dec 19, 2015 · 2 分钟 阅读 · ASP.NET CodeSmith 三层架构 动软

    动软代码生成器生成的ASP.NET三层架构代码比较规范,是学习ASP.NET的好例子 此三层架构改造自动软的工厂模式模板,使用CodeSmith进行重写,以方便大家修改模板文件 以下是针对表格的BLL层源码: <%@ CodeTemplate Language="C#" TargetLanguage="C#" Description="Generates a class including a special informational header" %> <%@ Assembly Name="SchemaExplorer" %> <%@ Import Namespace="SchemaExplorer" %> <%@ Import Namespace="System.Text" %> <%@ Property Name="TableName" Type="TableSchema" DeepLoad="True" Optional="False" Category="01. Getting Started - Required" Description="" %> <%@ Property Name="Namespace" Type="String" Category="Context" Description="NameSpace" Default="Crs811NameSpace"%> <%@ Property Name="Author" Type="String" Category="Context" Description="Author" Default="chenr"%> <%@ Property Name="TablePrefix" Type="System.String" Default="T" Category="Context" Description="The prefix to remove from table names" %> /*------------------------------------------------ // File Name:<%=ClearPrefix(TableName.


    阅读更多
    • ««
    • «
    • 12
    • 13
    • 14
    • 15
    • 16
    • »
    • »»

Ryan

学无止境.
阅读更多

精选文章

  • Rocky Linux 9 系统管理命令合辑
  • Ubuntu 22.04 优化

最新文章

  • Ubuntu 20.04 升级 GCC11, G++11
  • IntelliJ IDEA 2023.3 创建 JavaWeb 项目 (基于Maven)
  • NS3 网络模拟器基础
  • Hugo 静态网站搭建
  • Android 2024.3 开发环境搭建
  • Vue3.x 及相关热门技术
  • VS Code设置键盘快捷键
  • Ubuntu 22.04 优化

分类

C_CSHARP 36 TECH 31 LINUX 28 FRONTEND 17 PHP_JAVA 16 CLOUD 11 密码学 9 IOS 7 PYTHON 3 随笔 3

标签

LINUX 18 CRYPTOGRAPHY 16 ASP.NET 15 CODESMITH 15 三层架构 15 C 14 JAVASCRIPT 11 JAVAWEB 10 FRONTEND 7 DOCKER 5 UBUNTU 5 动软 5 闭包 5 CENTOS 4
所有标签
AES2 ANDROID1 API2 APP1 ASP.NET15 BEAMER1 BLOCK1 C14 CENTOS4 CODESMITH15 CRYPTOGRAPHY16 DOCKER5 FIND1 FRONTEND7 FRP1 GCC1 HTTPS1 HUGO1 IDEA1 IDEA-JAVAWEB1 INDEX1 IOS2 IPTABLES1 JAVASCRIPT11 JAVAWEB10 JWT1 K8S1 LATEX3 LINUX18 MANJARO1 MIRACL2 MVC1 MVVM1 MYSQL1 NAT1 NODE2 NS31 OFFICE1 PHP2 PUREFTP1 PYTHON33 RESEARCH1 ROCKYLINUX1 SHELL3 SPRING4 SWIFT3 SYSTEMD1 TOKEN1 TOTALCOMMAND1 UBUNTU5 UIKIT2 VAGRANT1 VBOX1 VIM2 VUE2 WIN101 YII21 三层架构15 云计算2 优化1 动软5 备份1 失真1 小工具1 正则1 源码1 爬虫1 环境配置1 登录1 闭包5
[A~Z][0~9]
Ryan's Blog - 个人工作日志

Copyright  RYAN'S BLOG - 个人工作日志. All Rights Reserved. ※ 蜀ICP备18014811号-1 ※. Powered by    Hugo Logo

to-top