I have the following example:
public class CatalogContext : DbContext
{
public CatalogContext(DbContextOptions<CatalogContext> options) : base(options)
{
}
}
I know that public class CatalogContext : DbContext
means that CatalogContext
inherits DbContext
.
But in the next line I only understand that public CatalogContext
is a constructor:
public CatalogContext(DbContextOptions<CatalogContext> options) : base(options)
I don't understand what : base(options)
is used for, where does it come from or what it's called.
I've been trying to find some info on this, but I don't know what to search for.
I found this list of operators in C#: https://www.tutorialspoint.com/csharp/csharp_operators.htm, but :
is found only in the Conditional Expression ? :
.
Then I thought, what if it's not an operator. What is it then ?