<commit_before>﻿using Microsoft.EntityFrameworkCore;

namespace TIKSN.Finance.ForeignExchange.Data.EntityFrameworkCore
{
    public class ExchangeRatesContext : DbContext
    {
        public virtual DbSet<ExchangeRateEntity> ExchangeRates { get; set; }
        public virtual DbSet<ForeignExchangeEntity> ForeignExchanges { get; set; }

        public ExchangeRatesContext(DbContextOptions<ExchangeRatesContext> dbContextOptions) : base(dbContextOptions)
        {

        }

        protected override void OnModelCreating(ModelBuilder modelBuilder)
        {
            modelBuilder.Entity<ExchangeRateEntity>(entity =>
            {
                entity.ToTable("ExchangeRates");

                entity.Property(e => e.ID).HasColumnName("ID");

                entity.Property(e => e.AsOn)
                    .IsRequired()
                    .HasColumnType("DATETIME");

                entity.Property(e => e.BaseCurrencyCode)
                    .IsRequired()<commit_msg>Update ExchangeRatesContext.cs<commit_after>﻿using Microsoft.EntityFrameworkCore;

namespace TIKSN.Finance.ForeignExchange.Data.EntityFrameworkCore
{
    public class ExchangeRatesContext : DbContext
    {
        public virtual DbSet<ExchangeRateEntity> ExchangeRates { get; set; }
        public virtual DbSet<ForeignExchangeEntity> ForeignExchanges { get; set; }

        public ExchangeRatesContext(DbContextOptions<ExchangeRatesContext> dbContextOptions) : base(dbContextOptions)
        {
        }

        protected override void OnModelCreating(ModelBuilder modelBuilder)
        {
            modelBuilder.Entity<ExchangeRateEntity>(entity =>
            {
                entity.ToTable("ExchangeRates");

                entity.Property(e => e.ID).HasColumnName("ID");

                entity.Property(e => e.AsOn)
                    .IsRequired()
                    .HasColumnType("DATETIME");

                entity.Property(e => e.BaseCurrencyCode)
                    .IsRequired()
{'fraction_non_alphanumeric': 0.0871975806451613, 'fraction_numerical': 0.0, 'mean_word_length': 2.3989726027397262, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 19, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7395399', 'n_tokens_mistral': 520, 'n_tokens_neox': 480, 'n_words': 80}