Skip to content

Latest commit

 

History

History
263 lines (197 loc) · 13.6 KB

File metadata and controls

263 lines (197 loc) · 13.6 KB

Code Metrics

This file is dynamically maintained by a bot, please do not edit this by hand. It represents various code metrics, such as cyclomatic complexity, maintainability index, and so on.

MyJetWallet.Sdk.Postgres ✔️

The MyJetWallet.Sdk.Postgres.csproj project file contains:

  • 1 namespaces.
  • 5 named types.
  • 233 total lines of source code.
  • Approximately 70 lines of executable code.
  • The highest cyclomatic complexity is 6 ✔️.
MyJetWallet.Sdk.Postgres ✔️

The MyJetWallet.Sdk.Postgres namespace contains 5 named types.

  • 5 named types.
  • 233 total lines of source code.
  • Approximately 70 lines of executable code.
  • The highest cyclomatic complexity is 6 ✔️.
DataBaseHelper ✔️
  • The DataBaseHelper contains 6 members.
  • 110 total lines of source code.
  • Approximately 46 lines of executable code.
  • The highest cyclomatic complexity is 6 ✔️.
Member kind Line number Maintainability index Cyclomatic complexity Depth of inheritance Class coupling Lines of source / executable code
Method 20 54 1 ✔️ 0 6 43 / 22
Method 85 62 1 ✔️ 0 3 24 / 11
Field 17 93 0 ✔️ 0 0 1 / 1
Field 18 93 0 ✔️ 0 0 1 / 1
Method 64 66 6 ✔️ 0 1 20 / 7
Method 110 78 1 ✔️ 0 6 14 / 4

🔗 to DataBaseHelper class diagram

🔝 back to MyJetWallet.Sdk.Postgres

MyDateTimeConverterToUtc ✔️
  • The MyDateTimeConverterToUtc contains 1 members.
  • 9 total lines of source code.
  • Approximately 2 lines of executable code.
  • The highest cyclomatic complexity is 1 ✔️.
Member kind Line number Maintainability index Cyclomatic complexity Depth of inheritance Class coupling Lines of source / executable code
Method 9 91 1 ✔️ 0 1 5 / 2

🔗 to MyDateTimeConverterToUtc class diagram

🔝 back to MyJetWallet.Sdk.Postgres

MyDbContext ✔️
  • The MyDbContext contains 6 members.
  • 27 total lines of source code.
  • Approximately 4 lines of executable code.
  • The highest cyclomatic complexity is 2 ✔️.
Member kind Line number Maintainability index Cyclomatic complexity Depth of inheritance Class coupling Lines of source / executable code
Method 13 100 1 ✔️ 0 2 3 / 0
Method 17 100 1 ✔️ 0 0 3 / 0
Method 29 100 1 ✔️ 0 2 4 / 1
Field 10 93 0 ✔️ 0 0 1 / 1
Property 11 100 2 ✔️ 0 1 1 / 0
Method 21 85 2 ✔️ 0 3 7 / 2

🔗 to MyDbContext class diagram

🔝 back to MyJetWallet.Sdk.Postgres

MyDesignTimeContextFactory<T> ✔️
  • The MyDesignTimeContextFactory<T> contains 3 members.
  • 25 total lines of source code.
  • Approximately 4 lines of executable code.
  • The highest cyclomatic complexity is 1 ✔️.
Member kind Line number Maintainability index Cyclomatic complexity Depth of inheritance Class coupling Lines of source / executable code
Field 11 100 0 ✔️ 0 2 1 / 0
Method 13 96 1 ✔️ 0 2 4 / 1
Method 18 84 1 ✔️ 0 4 15 / 3

🔗 to MyDesignTimeContextFactory&lt;T&gt; class diagram

🔝 back to MyJetWallet.Sdk.Postgres

SqlLiveChecker<T> ✔️
  • The SqlLiveChecker<T> contains 7 members.
  • 44 total lines of source code.
  • Approximately 14 lines of executable code.
  • The highest cyclomatic complexity is 2 ✔️.
Member kind Line number Maintainability index Cyclomatic complexity Depth of inheritance Class coupling Lines of source / executable code
Field 16 100 0 ✔️ 0 1 1 / 0
Field 14 100 0 ✔️ 0 1 1 / 0
Field 15 100 0 ✔️ 0 1 1 / 0
Method 18 75 1 ✔️ 0 5 8 / 4
Method 27 65 2 ✔️ 0 8 18 / 8
Method 46 100 1 ✔️ 0 4 4 / 1
Method 51 100 2 ✔️ 0 4 4 / 1

🔗 to SqlLiveChecker&lt;T&gt; class diagram

🔝 back to MyJetWallet.Sdk.Postgres

🔝 back to MyJetWallet.Sdk.Postgres

Metric definitions

  • Maintainability index: Measures ease of code maintenance. Higher values are better.
  • Cyclomatic complexity: Measures the number of branches. Lower values are better.
  • Depth of inheritance: Measures length of object inheritance hierarchy. Lower values are better.
  • Class coupling: Measures the number of classes that are referenced. Lower values are better.
  • Lines of source code: Exact number of lines of source code. Lower values are better.
  • Lines of executable code: Approximates the lines of executable code. Lower values are better.

Mermaid class diagrams

DataBaseHelper class diagram
classDiagram
class DataBaseHelper{
    -string MigrationTableName$
    -string MigrationTableSchema$
    +AddDatabase<T>(IServiceCollection services, string schema, string connectionString, Func<DbContextOptions, T> contextFactory, bool replaceSllInstruction = true)$ void
    +PrepareConnectionString(string connectionString, bool replaceSllInstruction)$ string
    +AddDatabaseWithoutMigrations<T>(IServiceCollection services, string schema, string connectionString, bool replaceSllInstruction = true)$ void
    +SpecifyKindUtc<TEntity>(EntityTypeBuilder<TEntity> builder, Expression<Func<TEntity, DateTime>> propertyExpression)$ PropertyBuilder<DateTime>
}

Loading
MyDateTimeConverterToUtc class diagram
classDiagram
class MyDateTimeConverterToUtc{
    +.ctor() MyDateTimeConverterToUtc
}

Loading
MyDbContext class diagram
classDiagram
class MyDbContext{
    -bool IsAlive$
    +ILoggerFactory LoggerFactory$
    +.ctor(DbContextOptions options) MyDbContext
    +.ctor() MyDbContext
    +OnConfiguring(DbContextOptionsBuilder optionsBuilder) void
    +ConfigureConventions(ModelConfigurationBuilder configurationBuilder) void
}

Loading
MyDesignTimeContextFactory<T> class diagram
classDiagram
class MyDesignTimeContextFactory<T>{
    -Func<DbContextOptions, T> _contextFactory
    +ignTimeContextFactory(Func<DbContextOptions, T> contextFactory) void
    +CreateDbContext(string[] args) T
}

Loading
SqlLiveChecker<T> class diagram
classDiagram
class SqlLiveChecker<T>{
    -ILogger<SqlLiveChecker<T>> _logger
    -MyTaskTimer _timer
    -DbContextOptionsBuilder<T> _dbContextOptionsBuilder
    +veChecker(ILogger<SqlLiveChecker<T>> logger, DbContextOptionsBuilder<T> dbContextOptionsBuilder) void
    +DoTime() Task
    +StartAsync(CancellationToken cancellationToken) Task
    +StopAsync(CancellationToken cancellationToken) Task
}

Loading

This file is maintained by a bot.