Skip to content

Instantly share code, notes, and snippets.

@zappan
Created August 29, 2011 20:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zappan/ea57c38e88220694f7ec to your computer and use it in GitHub Desktop.
Save zappan/ea57c38e88220694f7ec to your computer and use it in GitHub Desktop.
Massive models classes - FanClub demo
public class Articles : Massive.DynamicModel
{
public Articles() : base(FanClubApp.DatabaseConnectionName)
{
TableName = "clanak"; // legacy table name
PrimaryKeyField = "sifClanak"; // legacy PK column name
}
}
public class FanClubCategory : Massive.DynamicModel
{
public FanClubCategory() : base(FanClubApp.DatabaseConnectionName)
{
PrimaryKeyField = "categoryId";
}
}
public class FanClubOffer : Massive.DynamicModel
{
public FanClubOffer() : base(FanClubApp.DatabaseConnectionName)
{
PrimaryKeyField = "offerId";
}
}
public class FanClubPartner : Massive.DynamicModel
{
public FanClubPartner() : base(FanClubApp.DatabaseConnectionName)
{
PrimaryKeyField = "partnerId";
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment