Created
December 17, 2014 15:24
-
-
Save andrewconnell/76c0ad359b9a319195fa to your computer and use it in GitHub Desktop.
Azure AD & ASP.NET MVC - Walk-Through Implementing ADAL & OWIN - TokenCacheDataContext.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Data.Entity; | |
using System.Data.Entity.ModelConfiguration.Conventions; | |
using SampleMvcAzAuth.Models; | |
namespace SampleMvcAzAuth.Data { | |
public class TokenCacheDataContext : DbContext{ | |
public TokenCacheDataContext() | |
: base("TokenCacheDataContext") { } | |
public DbSet<PerUserWebCache> PerUserCacheList { get; set; } | |
protected override void OnModelCreating(DbModelBuilder modelBuilder) { | |
modelBuilder.Conventions.Remove<PluralizingTableNameConvention>(); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment