|
-
Jun 2nd, 2011, 05:19 AM
#1
Thread Starter
New Member
Using MySQL with MVC
Hi folks, hope someone can help...
I've just made the jump over to MVC from webforms and was hoping someone could give me a pointer on the best-practices to follow when using MySQL.
My app's going to be doing a lot of database interactions so unless I do things properly I fear I could end up littering the app with database connections. My best approach so far is to create a class with the db connections and get my models to inherit from that - although that doesn't feel very MVC to me. Does this sound like a good approach?
I have no problem with the syntax or anything like that, it's just the design philosophy behind it.
(I'm still a bit new to MVC so forgive me if my terminology is wrong - or if none of this makes sense!)
Thanks!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|