Skip to content

Instantly share code, notes, and snippets.

@andrewconnell
Created December 17, 2014 15:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andrewconnell/76c0ad359b9a319195fa to your computer and use it in GitHub Desktop.
Save andrewconnell/76c0ad359b9a319195fa to your computer and use it in GitHub Desktop.
Azure AD & ASP.NET MVC - Walk-Through Implementing ADAL & OWIN - TokenCacheDataContext.cs
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