Creation of EF Core Migrations - these execute using EF Tools, but are not integrated to run programmatically
This commit is contained in:
21
Oqtane.Server/Migrations/Framework/PrimaryKey.cs
Normal file
21
Oqtane.Server/Migrations/Framework/PrimaryKey.cs
Normal file
@ -0,0 +1,21 @@
|
||||
using System;
|
||||
using System.Linq.Expressions;
|
||||
using Oqtane.Migrations.EntityBuilders;
|
||||
|
||||
namespace Oqtane.Migrations
|
||||
{
|
||||
public readonly struct PrimaryKey<TEntityBuilder> where TEntityBuilder : BaseEntityBuilder<TEntityBuilder>
|
||||
{
|
||||
public PrimaryKey(string name, Expression<Func<TEntityBuilder, object>> columns)
|
||||
{
|
||||
Name = name;
|
||||
Columns = columns;
|
||||
}
|
||||
|
||||
public string Name { get; }
|
||||
|
||||
public Expression<Func<TEntityBuilder, object>> Columns { get;}
|
||||
|
||||
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user