nettoyages
This commit is contained in:
parent
fa34ed249b
commit
ab950ed3aa
4 changed files with 8 additions and 4 deletions
|
|
@ -5,6 +5,7 @@ using System.Threading.Tasks;
|
|||
using Microsoft.AspNet.Authentication.OAuth;
|
||||
using Microsoft.AspNet.Identity.EntityFramework;
|
||||
using Microsoft.Data.Entity;
|
||||
using Microsoft.Data.Entity.Infrastructure;
|
||||
using Yavsc.Models.Booking;
|
||||
|
||||
namespace Yavsc.Models
|
||||
|
|
@ -21,6 +22,11 @@ namespace Yavsc.Models
|
|||
builder.Entity<Contact>().HasKey(x => new { x.OwnerId, x.UserId });
|
||||
builder.Entity<BookQuery>().Property(x=>x.CreationDate).HasDefaultValueSql("LOCALTIMESTAMP");
|
||||
}
|
||||
protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
|
||||
{
|
||||
optionsBuilder.UseNpgsql(Startup.ConnectionString);
|
||||
}
|
||||
|
||||
public DbSet<Application> Applications { get; set; }
|
||||
/// <summary>
|
||||
/// Activities referenced on this site
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue