I know it's possible to create
Any relationships where the related record could be of any type.
Is there a way to tell the ActiveRecord the records in a table belong to many different types even when there is no relationships? For example I have a table in which there is a string field that stores the type of each record in table. I'd like ActiveRecord to recognize the type of each record and subsequently instantiate the correct type when querying that table.
Can anyone say if that's possible?
Email errors in a asp.net mvc application
ASP.NET MVC: First access after some minutes slow, then every following request is fast
How to get all input controls which are of type file in jquery
Each method is design to suit each of these three situations:.
Razor view engine - exception when calling Any Function
Single Table Inheritanceuses a single table with a discriminator column to determine which type each row contains..
Write css for individual page in mvc3 project
Class Table Inheritanceinvolves using different tables for each class where the "base" table defined the primary key, and the others "inherit" it..
Asp.net WebForms app that runs MVC in a subfolder
Concrete Table Inheritanceis a third way to map a class hierarchy, each concrete class has its own database table..
how do i have a facebook-like scrolling updates on my website showing all activity
Razor view engine - How can I add Partial Views