DataStoreExtensions.ToDataStore<TModel>(this IEnumerable<TModel> items) Method
.NET Standard 2.x
Creates an IDataStore object using an IEnumerable<TModel> object.
Namespace: DWNet.Data
Assembly: DWNet.Data.dll
Syntax
public static IDataStore<TModel> ToDataStore<TModel>(this IEnumerable<TModel> items);
Parameters
items System.Collections.Generic.IEnumerable<TModel>
A sequence of TModel objects which contain data.
Returns
Returns the newly created IDataStore object.
Examples
The following code example demonstrates how to create an IDataStore object from an IEnumerable<TModel> object and then insert data to it.
Applies to
.NET Standard
2.x