You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
1.2 KiB
C#
29 lines
1.2 KiB
C#
// Copyright (c) .NET Foundation. All rights reserved.
|
|
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
|
|
|
using Microsoft.EntityFrameworkCore.Metadata;
|
|
|
|
namespace Microsoft.EntityFrameworkCore.TestUtilities
|
|
{
|
|
public static class TestRelationalMetadataExtensions
|
|
{
|
|
public static IRelationalPropertyAnnotations TestProvider(this IProperty property)
|
|
=> new RelationalPropertyAnnotations(property);
|
|
|
|
public static IRelationalEntityTypeAnnotations TestProvider(this IEntityType entityType)
|
|
=> new RelationalEntityTypeAnnotations(entityType);
|
|
|
|
public static IRelationalKeyAnnotations TestProvider(this IKey key)
|
|
=> new RelationalKeyAnnotations(key);
|
|
|
|
public static IRelationalIndexAnnotations TestProvider(this IIndex index)
|
|
=> new RelationalIndexAnnotations(index);
|
|
|
|
public static IRelationalForeignKeyAnnotations TestProvider(this IForeignKey foreignKey)
|
|
=> new RelationalForeignKeyAnnotations(foreignKey);
|
|
|
|
public static IRelationalModelAnnotations TestProvider(this IModel model)
|
|
=> new RelationalModelAnnotations(model);
|
|
}
|
|
}
|