zoukankan      html  css  js  c++  java
  • AnCode++ ( VS2017 插件 )

    AnCode + + is a code generator, which is suitable for the animal.orm framework, and can also customize the internal structure and data type for your own orm framework.

    Generate Model 

    AConfig.xml

    <?xml version="1.0" encoding="utf-8"?>
    <AnimalConfig>
      <!--1.Model Suffix Name-->
      <EntitySuffixName>Entity</EntitySuffixName>
      <!--2.Model NameSpance-->
      <EntityNameSpance>AnCodeDemo</EntityNameSpance>
      <!--3.Show Attribute(Tiger、Koala、Cat) 1 Show 0 Hide-->
      <UseAttribute>1</UseAttribute>
      <!--3.1 Desc Table Name-->
      <TigerAttribute>Tiger</TigerAttribute>
      <!--3.2 Desc Primary Key and Self growth-->
      <KoalaTrueAttribute>Koala(true)</KoalaTrueAttribute>
      <!--3.3 Desc Primary Key-->
      <KoalaAttribute>Koala</KoalaAttribute>
      <!--3.4 Desc Column-->
      <CatAttribute>Cat</CatAttribute>
      <!--4.Using Attribute NameSpance-->
      <AttributeNameSpance>using Animal.ORM.Model;</AttributeNameSpance>   
      <!--5.Using The Third NameSpance-->
      <UsingThirdNameSpance/>
      <UsingThirdNameSpance2/>
      <UsingThirdNameSpance3/>
      <UsingThirdNameSpance4/>
      <UsingThirdNameSpance5/>
      <!--6.System Base Type Config,if not exists the type is string-->
      <BaseTypeList>
        <AnimalBaseType>
          <BaseTypeName>long</BaseTypeName>
          <BaseTypeVsDbColumnTypeNames>bigint</BaseTypeVsDbColumnTypeNames>
        </AnimalBaseType>
        <AnimalBaseType>
          <BaseTypeName>int</BaseTypeName>
          <BaseTypeVsDbColumnTypeNames>int,bit,year</BaseTypeVsDbColumnTypeNames>
        </AnimalBaseType>
        <AnimalBaseType>
          <BaseTypeName>string</BaseTypeName>
          <BaseTypeVsDbColumnTypeNames>char,text,json,xml</BaseTypeVsDbColumnTypeNames>
        </AnimalBaseType>
        <AnimalBaseType>
          <BaseTypeName>DateTime</BaseTypeName>
          <BaseTypeVsDbColumnTypeNames>datetime,time,date,timestamp</BaseTypeVsDbColumnTypeNames>
        </AnimalBaseType>
        <AnimalBaseType>
          <BaseTypeName>double</BaseTypeName>
          <BaseTypeVsDbColumnTypeNames>real,float,double,number,numeric</BaseTypeVsDbColumnTypeNames>
        </AnimalBaseType>
        <AnimalBaseType>
          <BaseTypeName>decimal</BaseTypeName>
          <BaseTypeVsDbColumnTypeNames>decimal,money</BaseTypeVsDbColumnTypeNames>
        </AnimalBaseType>
        <AnimalBaseType>
          <BaseTypeName>Byte[]</BaseTypeName>
          <BaseTypeVsDbColumnTypeNames>binary,blob,image</BaseTypeVsDbColumnTypeNames>
        </AnimalBaseType>
      </BaseTypeList>
      <!--7.System Base Nullable Type Config, eg int?,DateTime?-->
      <BaseNullableTypeArray>int,DateTime,double,decimal,long,bool</BaseNullableTypeArray>
    </AnimalConfig>

    Code

    Demo

    https://download.csdn.net/download/niuzai520/15741899

    一个IT技术人员想为IT技术人员们提供一个纯净的技术交流空间,博客园很长时间只有一个不能再简单的博客,有近四年,博客园仅靠一个人几年工作的积蓄在维持,互联网浪潮的此起彼伏,“博客”从耀眼的明星成为平民,这些似乎都与博客园无关,博客园一步一个脚印地走着自己的路,傻傻地对每个用户注册进行人工审批、对首页内容宁缺毋滥、对不合适的广告拒之门外,傻傻地对用户体验关怀备至,对盈利模式冷若冰霜。
    这样一个不起眼的地方,却吸引了很多IT技术精英,把这里当作自己的网上家园,每天在这里分享着精彩的原创内容,也许他们看重的不是华丽的外表、诱人的虚名,而是纯净、专注、对技术人员的理解。
    博客园来到了上海,有了自己的团队,注册用户4万多,每天有15万以上的用户访问,除了博客,有了互动交流的小组,有了你问我答的博问,有了收藏精彩内容的网摘,有了搜索站内内容的找找看,有了随时记录思想火花的闪存,有了随时了解业内动态的新闻频道,有了知识库,有了期刊,有了……
    博客园的用户中成长出了一批又一批专家,在IT行业中大展身手!
    博客园在行业中的影响力越来越大!
    博客园正朝着高品质的IT媒体与社区方向发展……
    这些文字不能清楚地描述出真正的博客园,我们知道:真正的博客园体现于我们每天为用户提供的服务!

                                    

                                       

                                     

                                

    关于分享和转载:本文是由作者本人原创,如需分享或转载请备注原文出处!
  • 相关阅读:
    html5数字和颜色输入框
    WinForm设置右键菜单
    设置窗体透明C#代码
    C#调用windows api示例
    使用VS GDB扩充套件在VS上远端侦错Linux上的C/C++程序
    javascript系统时间测试题
    博客园学习的好地方
    基于jQuery的自适应图片左右切换
    HTML+CSS代码橙色导航菜单
    ASP.NET使用UpdatePanel实现AJAX
  • 原文地址:https://www.cnblogs.com/Ryan2012/p/14524282.html
Copyright © 2011-2022 走看看