コード例 #1
0
        public void Configure(EntityTypeBuilder <TranslationKeyExtended> builder)
        {
            builder.ApplyTranslationKeyBaseConfiguration(nameof(TranslationKeyExtended), TranslationKeyExtended.ViewName, "mh_localization");

            builder.Property(p => p.ApplicationName).HasColumnName("application_name");
            builder.Property(p => p.ClassName).HasColumnName("class_name");
            builder.Property(p => p.InheritedClassName).HasColumnName("inherited_class_name");
            builder.Property(p => p.FullKey).HasColumnName("full_key");
        }
コード例 #2
0
 public void Configure(EntityTypeBuilder <TranslationKey> builder)
 {
     builder.ApplyTranslationKeyBaseConfiguration(nameof(TranslationKey), "translation_keys", "mh_localization");
 }