public EntityHistoryMacro(CommonConceptsDatabaseSettings databaseSettings) { // TODO: we inject DatabaseSetttings here, but correct solution would be to inject ConceptMetadata and use ConceptMetadata.GetColumnType to fetch SQL type of the column // we can't do that because of circular reference problem between projects and IDatabaseColumnType is not available // needs to be refactored after we rearrange/merge projects and remove circular dependency in question _dateTimeSqlColumnType = databaseSettings.UseLegacyMsSqlDateTime ? "DATETIME" : $"DATETIME2({databaseSettings.DateTimePrecision})"; }
public DateTimeDatabaseColumnTypeMetadata(CommonConceptsDatabaseSettings databaseSettings) { _databaseSettings = databaseSettings; }