开发者

T4 Generate ASP.NET WebForm UI

开发者 https://www.devze.com 2023-02-20 06:54 出处:网络
I\'m staring to learn T4 . I want to create a framework for my self that enable me to generate DAL and UI.

I'm staring to learn T4 . I want to create a framework for my self that enable me to generate DAL and UI. Like Code generator softwares that maps Codes and User Interface from database . i don't have any question about generating data access layer. my challenge is to generate UI ( asp.net controls and HTML). is there any sample exist with T4? what are your suggestions about this Code Generator that i want creat开发者_如何转开发e?


Please try my post here: T4 Templates for ASP.NET Web Form CRUD Application.

I put a very basic code snippet generating templates for an aspx page (DetailsView and GridView for CRUD), ObjectDataSource methods for CRUD operations in VB, and SQL stored procedures matching with them.


Have you looked into Microsoft Visual Studio LightSwitch? I feel your search ends at Microsoft LightSwitch.

LightSwitch is able to generate UI for you. All you need to do is tell it to pull the data from one of the logical ends it is able to understand. As of now it is letting you talk to 1) WCF RIA services, 2) to Sharepoint through WCF data services and you can also connect LightSwitch presentation layer to Entity Framework.

Besides this you get amazing capability to customize your UI. LightSwitch UI is basically Silverlight 4 based UI which can be hosted out of browser or on a web server.

Hope this helps.

0

精彩评论

暂无评论...
验证码 换一张
取 消