asp.net - Why Appharbor not create all tables -
why appharbor not create tables.
i have following entity framework configuration.
public class rezawebcontext : dbcontext { public rezawebcontext() : base("defaultconnection") { } public dbset<userprofile> userprofiles { get; set; } public dbset<registrantinfo> registrantinfos { get; set; } protected override void onmodelcreating(dbmodelbuilder modelbuilder) { modelbuilder.conventions.remove<pluralizingtablenameconvention>(); modelbuilder.entity<registrantinfo>().hasrequired(x => x.userprofile).withoptional(x => x.registrantinfo); } } public class registrantinfo { public virtual int registrantinfoid { get; set; } public virtual string name { get; set; } public virtual string sex { get; set; } public virtual string birthplace { get; set; } public virtual string birthdate { get; set; } public virtual string address { get; set; } public virtual string examnumber { get; set; } public virtual userprofile userprofile { get; set; } } //this tables used asp.net simple membership [table("userprofile")] public class userprofile { [key] [databasegenerated(databasegeneratedoption.identity)] public int userid { get; set; } public string username { get; set; } public virtual registrantinfo registrantinfo { get; set; } } connstring : <add name="defaultconnection" connectionstring="server=localhost\sqlexpress; database=rezaweb; user id=sa; password=123456; multipleactiveresultsets=true" providername="system.data.sqlclient" />
in computer. database tables created. registrationinfo + simplemembership tables (userprofile, webpages_membership, webpages_oauthmembership, webpages_roles, webpages_usersinroles)
in appharbor : simplemembership tables created "registrationinfo" table not created.
why ?
Comments
Post a Comment