nettoyages

This commit is contained in:
Paul Schneider 2016-06-07 15:58:14 +02:00
commit ab950ed3aa
4 changed files with 8 additions and 4 deletions

View file

@ -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