advise how to implement a code generator for asp.NET mvc 2
Posted
by loviji
on Stack Overflow
See other posts from Stack Overflow
or by loviji
Published on 2010-04-15T13:36:50Z
Indexed on
2010/04/15
13:43 UTC
Read the original article
Hit count: 432
Hello, I would like your advice about how best to solve my problem.
In a Web server is running. NET Framework 4.0. Whatever the methods and technologies you would advise me. applications built on the basis Asp.NET MVC 2.
I have a database table in MS SQL Server. For each database, I must implement the interface for viewing, editing, and deleting. So code generator must generate model, controller and views.. Generation should happen after clicking on the button. as model I use .NET Entity Framework.
Now, I need to generate controllers and views.
So if i have a table with name tableN1. and below its colums:
- [ID] [bigint] IDENTITY(1,1) NOT NULL,
- [name] [nvarchar 20] NOT NULL,
- [fullName] [nvarchar 50] NOT NULL,
- [age] [int] NOT NULL
- [active] [bit] NULL
for this table, i want to generate views and controller. thanks.
© Stack Overflow or respective owner