title: Asp.Net Core 3.1 LinqToDB.Identity UserManager CreateAsync Error
body: <p>I have implemented LinqToDB.Identity into my project. I have been trying to create a user by using .Net Identity UserManager, but I am getting an error. I have also implemented LinqToDB.Identity optimizations, such as AddLinqToDBStores and IdentityConnectionFactory.</p>
  <p>As I have mentioned about it, I am getting an error like this when I try to create an user.</p>
  <p>{&quot;Method not found: 'Int32 LinqToDB.DataExtensions.Insert(LinqToDB.IDataContext, System.__Canon, System.String, System.String, System.String)'.&quot;}</p>
  <p><a href="https://i.stack.imgur.com/8oZ98.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/8oZ98.png" alt="enter image description here" /></a></p>
  <p>Here is my AddLinqToDBStores options and configurations.</p>
  <pre><code> public static void AddDevPlatformAuthentication(this IServiceCollection services, IConfiguration configuration)
      {
          services.AddIdentity&lt;AppUser, LinqToDB.Identity.IdentityRole&lt;int&gt;&gt;(options =&gt;
          {
              options.Password.RequireDigit = true;
              options.Password.RequiredLength = 4;
              options.Password.RequireNonAlphanumeric = false;
              options.Password.RequireUppercase = true;
              options.Password.RequireLowercase = false;
  
              options.User.RequireUniqueEmail = true;
  
              //TODO
              //options.User.RequireUniqueEmail = true; 
              //options.SignIn.RequireConfirmedEmail = true;
              //options.Lockout.MaxFailedAccessAttempts = 5;
              //options.Lockout.DefaultLockoutTimeSpan = TimeSpan.FromMinutes(3);
  
          }).AddLinqToDBStores&lt;int, AppUserClaim, AppUserRole, AppUserLogin, AppUserToken, AppRoleClaim&gt;(new
          IdentityConnectionFactory(new SqlServerDataProvider(ProviderName.SqlServer, SqlServerVersion.v2017), &quot;SqlServerIdentity&quot;, DataSettingsManager.LoadSettings().ConnectionString))
              .AddDefaultTokenProviders();
  
          services.AddAuthentication(CookieAuthenticationDefaults.AuthenticationScheme).AddCookie();
  
          // Uncomment the following lines to enable logging in with third party login providers
  
          JwtTokenDefinitions.LoadFromConfiguration(configuration);
          services.ConfigureJwtAuthentication();
          services.ConfigureJwtAuthorization();
      }
  </code></pre>
  <p>Here is my IdentityConnectionFactory class that has inherited from IConnectionFactory interface.</p>
  <pre><code>public class IdentityConnectionFactory : IConnectionFactory
  {
      private static readonly Dictionary&lt;string, HashSet&lt;string&gt;&gt; _tables = new Dictionary&lt;string, HashSet&lt;string&gt;&gt;();
      private readonly string _configuration;
      private readonly string _connectionString;
      private readonly string _key;
      private readonly IDataProvider _provider;
  
      public IdentityConnectionFactory(IDataProvider provider, string configuration, string connectionString)
      {
          _provider = provider;
          Configuration.Linq.AllowMultipleQuery = true;
          //DataConnection.AddConfiguration(configuration, connectionString, provider);
          _configuration = configuration;
          _connectionString = connectionString;
          _key = _configuration + &quot;$$&quot; + _connectionString;
      }
      public IDataContext GetContext()
      {
          return new DataContext(_provider, _connectionString);
      }
  
      public DataConnection GetConnection()
      {
          var db = new DataConnection(_provider, _connectionString);
          db.AddMappingSchema(AdditionalSchema);
  
          return db;
      }
  
      protected MappingSchema AdditionalSchema
      {
          get
          {
              if (!(Singleton&lt;MappingSchema&gt;.Instance is null))
                  return Singleton&lt;MappingSchema&gt;.Instance;
  
              Singleton&lt;MappingSchema&gt;.Instance =
                  new MappingSchema(_provider.Name) { MetadataReader = new FluentMigratorMetadataReader() };
  
              return Singleton&lt;MappingSchema&gt;.Instance;
          }
      }
  </code></pre>
  <p>There are so many code blocks that I can not paste here. I would be very happy if someone could help.</p>
  <p>If you would like to see the project, you can check here;</p>
  <p><a href="https://github.com/dogaanismail/DevPlatform" rel="nofollow noreferrer">https://github.com/dogaanismail/DevPlatform</a></p>