Create a gist now

Instantly share code, notes, and snippets.

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