次の方法で共有


StructuralTypeConfiguration<TStructuralType> クラス

[このページは、Entity Framework 6 に関するページです。最新バージョンは、'Entity Framework' NuGet パッケージとして入手できます。Entity Framework の詳細については、msdn.com/data/ef を参照してください。]

モデル内の特定の型に対して構成を実行するために使用します。

継承階層

System.Object
  System.Data.Entity.ModelConfiguration.Configuration.StructuralTypeConfiguration<TStructuralType>
    System.Data.Entity.ModelConfiguration.ComplexTypeConfiguration<TComplexType>
    System.Data.Entity.ModelConfiguration.EntityTypeConfiguration<TEntityType>

名前空間:  System.Data.Entity.ModelConfiguration.Configuration
アセンブリ:  EntityFramework (EntityFramework.dll 内)

構文

'宣言
Public MustInherit Class StructuralTypeConfiguration(Of TStructuralType As Class)
'使用
Dim instance As StructuralTypeConfiguration(Of TStructuralType)
public abstract class StructuralTypeConfiguration<TStructuralType>
where TStructuralType : class
generic<typename TStructuralType>
where TStructuralType : ref class 
public ref class StructuralTypeConfiguration abstract
[<AbstractClassAttribute>]
type StructuralTypeConfiguration<'TStructuralType when 'TStructuralType : not struct> =  class end
JScript does not support generic types and methods.

型パラメーター

  • TStructuralType
    構成する型。

StructuralTypeConfiguration<TStructuralType> 型で公開されるメンバーは以下のとおりです。

コンストラクター

  名前 説明
プロテクト メソッド StructuralTypeConfiguration<TStructuralType> StructuralTypeConfiguration<TStructuralType> クラスの新しいインスタンスを初期化します。

上揃え

メソッド

  名前 説明
パブリック メソッド Equals 指定したオブジェクトが、現在のオブジェクトと等しいかどうかを判断します。 (Object.Equals(Object) をオーバーライドします。)
プロテクト メソッド Finalize (Object から継承されます。)
パブリック メソッド GetHashCode 特定の型のハッシュ関数として機能します。 (Object.GetHashCode() をオーバーライドします。)
パブリック メソッド GetType 現在のインスタンスの Type を取得します。
プロテクト メソッド MemberwiseClone (Object から継承されます。)
パブリック メソッド Property(Expression<Func<TStructuralType, array<Byte[]>>) この型に対して定義される byte プロパティを構成します。
パブリック メソッド Property(Expression<Func<TStructuralType, DateTime>>) この型に対して定義される DateTime プロパティを構成します。
パブリック メソッド Property(Expression<Func<TStructuralType, DateTimeOffset>>) この型に対して定義される DateTimeOffset プロパティを構成します。
パブリック メソッド Property(Expression<Func<TStructuralType, Decimal>>) この型に対して定義される decimal プロパティを構成します。
パブリック メソッド Property(Expression<Func<TStructuralType, Nullable<DateTime>>>) この型に対して定義される [T:System.DateTime?] プロパティを構成します。
パブリック メソッド Property(Expression<Func<TStructuralType, Nullable<DateTimeOffset>>>) この型に対して定義される [T:System.DateTimeOffset?] プロパティを構成します。
パブリック メソッド Property(Expression<Func<TStructuralType, Nullable<Decimal>>>) この型に対して定義される [T:System.decimal?] プロパティを構成します。
パブリック メソッド Property(Expression<Func<TStructuralType, Nullable<TimeSpan>>>) この型に対して定義される [T:System.TimeSpan?] プロパティを構成します。
パブリック メソッド Property(Expression<Func<TStructuralType, String>>) この型に対して定義される string プロパティを構成します。
パブリック メソッド Property(Expression<Func<TStructuralType, TimeSpan>>) この型に対して定義される TimeSpan プロパティを構成します。
パブリック メソッド Property(Expression<Func<TStructuralType, DbGeography>>) この型に対して定義される DbGeography プロパティを構成します。
パブリック メソッド Property(Expression<Func<TStructuralType, DbGeometry>>) この型に対して定義される DbGeometry プロパティを構成します。
パブリック メソッド Property<T>(Expression<Func<TStructuralType, Nullable<T>>>) この型に対して定義される [T:System.struct?] プロパティを構成します。
パブリック メソッド Property<T>(Expression<Func<TStructuralType, T>>) この型に対して定義される struct プロパティを構成します。
パブリック メソッド ToString 現在のオブジェクトを表す文字列を返します。 (Object.ToString() をオーバーライドします。)

上揃え

スレッド セーフ

この型のすべてのパブリック static (Visual Basic では Shared) メンバーは、スレッド セーフです。インスタンス メンバーの場合は、スレッド セーフであるとは限りません。

参照

参照

System.Data.Entity.ModelConfiguration.Configuration 名前空間