コード例 #1
0
        protected override void OnModelCreating(DbModelBuilder modelBuilder)
        {
            Guard.ArgumentNotNull(modelBuilder, nameof(modelBuilder));

            modelBuilder.AddFrameworkConventions();
            //modelBuilder.ConfigureFrameworkFilters();

            modelBuilder.Ignore <Entity>();
            modelBuilder.Ignore <CreationTrackingEntity>();
            modelBuilder.Ignore <ModificationTrackingEntity>();
            modelBuilder.Ignore <DeletionTrackingEntity>();
            modelBuilder.Ignore <TrackableEntity>();
            modelBuilder.Ignore <FullTrackableEntity>();
        }