EntitySet<TEntity>.SetSource(IEnumerable<TEntity>) EntitySet<TEntity>.SetSource(IEnumerable<TEntity>) EntitySet<TEntity>.SetSource(IEnumerable<TEntity>) EntitySet<TEntity>.SetSource(IEnumerable<TEntity>) Method

定义

设置 EntitySet<TEntity> 的源。Sets the source of the EntitySet<TEntity>.

public:
 void SetSource(System::Collections::Generic::IEnumerable<TEntity> ^ entitySource);
public void SetSource (System.Collections.Generic.IEnumerable<TEntity> entitySource);
member this.SetSource : seq<'Entity (requires 'Entity : null)> -> unit
Public Sub SetSource (entitySource As IEnumerable(Of TEntity))

参数

entitySource
IEnumerable<TEntity>

EntitySet<TEntity> 的源。The source of the EntitySet<TEntity>.

适用于