Mono Support Example of Database connection and custom web part? (Closed)

Viewed 57726 time(s), 2 post(s), 6/15/2011 6:45:38 PM - by waterskiaddict
6/15/2011 6:49:01 PM
36 Reputation 10 Total posts

I am interested in making a custom web part that accesses another table in the SQL database. Is there any examples of this? or a tutorial on how to do it? I have done asp.net development before but nothing with web parts.

I have already created the tables in SQL, and the page in a normal ascx file through visual studio 2010

1
6/15/2011 6:58:24 PM
7207 Reputation 956 Total posts

The tutorial at this URL (http://www.mono-software.com/blog/post/Mono/93/Building-a-custom-Web-part/) describes this process in full detail, including all MonoX-specific techniques (like templating). In addition, it also describes a recommended data access strategy.
However, you can choose the data access techniques you want to use - MonoX uses LLBLGen ORM and a repository model, but you can use anything else: NHybernate, LINQ, Entity Framework, ADO.NET...

2
This is a demo site for MonoX. Please visit Mono Software for more info.