Search Results for

    Show / Hide Table of Contents

    Class OEMSDBContextFactory

    Factory class for creating instances of the OEMSDBContext Used for EF Core migrations and design-time tools

    Inheritance
    object
    OEMSDBContextFactory
    Implements
    IDesignTimeDbContextFactory<OEMSDBContext>
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: OEMS.Core.Infrastructure
    Assembly: OEMS.Core.dll
    Syntax
    public class OEMSDBContextFactory : IDesignTimeDbContextFactory<OEMSDBContext>

    Methods

    CreateDbContext(string[])

    Creates a new DbContext instance for migrations and design-time tools

    Declaration
    public OEMSDBContext CreateDbContext(string[] args)
    Parameters
    Type Name Description
    string[] args

    Command line arguments

    Returns
    Type Description
    OEMSDBContext

    New OEMSDBContext instance

    Implements

    IDesignTimeDbContextFactory<TContext>
    In this article
    Back to top Generated by DocFX