Click here to Skip to main content
15,896,269 members
Articles / Programming Languages / C#

Millennials - A Custom Source Code Generator

Rate me:
Please Sign up or sign in to vote.
4.90/5 (33 votes)
6 Jul 2012GPL34 min read 68K   7.8K   89  
Custom code generator for C# programming language. Supports MVC and three-tier architecture; ADO.NET, NHibernate and LINQ data access
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Millennials.Util
{

    /// <summary>
    /// Creation project steps 
    /// </summary>
    public enum NewProjectStep : int
    {
        CONNECTION = 1,
        TABLE = 2,
        CONFIG = 3,
        SOLUTION = 4
    }

    /// <summary>
    ///  Database's objects image
    /// </summary>
    public enum DBImage : int
    {
        TABLE = 0,
        FIELD = 1,
        PRIMARY_KEY = 2,
        FOREIGN_KEY = 3
    }

    /// <summary>
    ///  Architecture types
    /// </summary>
    public enum Architecture : int
    {
        MVC = 1,
        THREETIER = 2
    }

    /// <summary>
    /// Data Access types
    /// </summary>
    public enum DataAccess : int
    {
        ADONET = 1,
        LINQ = 2,
        NHIBERNATE = 3
    }

    /// <summary>
    /// Project types
    /// </summary>
    public enum ProjectType : int
    {
        MODEL = 1,
        VIEW = 2,
        CONTROLLER = 3,
        BUSINESS = 4,
        DAO = 5
    }

}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The GNU General Public License (GPLv3)


Written By
Engineer
Brazil Brazil
Computer engineer

Comments and Discussions