Note that there are some explanatory texts on larger screens.

plurals
  1. POWhy Appharbor not create all tables
    primarykey
    data
    text
    <p>Why Appharbor not create all tables.</p> <p>I have the following Entity Framework Configuration.</p> <pre><code>public class RezaWebContext : DbContext { public RezaWebContext() : base("DefaultConnection") { } public DbSet&lt;UserProfile&gt; UserProfiles { get; set; } public DbSet&lt;RegistrantInfo&gt; RegistrantInfos { get; set; } protected override void OnModelCreating(DbModelBuilder modelBuilder) { modelBuilder.Conventions.Remove&lt;PluralizingTableNameConvention&gt;(); modelBuilder.Entity&lt;RegistrantInfo&gt;().HasRequired(x =&gt; x.UserProfile).WithOptional(x =&gt; 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 by 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 : &lt;add name="DefaultConnection" connectionString="server=localhost\SqlExpress; database=RezaWeb; user id=sa; password=123456; MultipleActiveResultSets=True" providerName="System.Data.SqlClient" /&gt; </code></pre> <p>in my computer. All database tables created. RegistrationInfo + SimpleMembership tables (UserProfile, webpages_Membership, webpages_OAuthMembership, webpages_Roles, webpages_UsersInRoles)</p> <p>in appharbor : all SimpleMembership tables created but "RegistrationInfo" table not created. </p> <p>Why ?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload