Show / Hide Table of Contents

Class Extensions

Provides extension methods.

Inheritance
System.Object
Extensions
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: DevZest.Data
Assembly: DevZest.Data.dll
Syntax
public static class Extensions

Methods

Name Description
GetChildDataSet<T>(T, DataRow)

Gets child DataSet from specified parent DataRow.

GetChildDataSet<T>(T, Int32)

Gets child DataSet from specified parent DataRow ordinal.

Join<T>(T, IEntity<T>)

Joins source key with specified entity.

Match<T>(IEntity<T>, T)

Matches entity with specified key.

Match<T>(IEntity<T>, IEntity<T>)

Matches two entities with same key.

SingleAsync<TEntity, T>(DbSet<TEntity>, Func<TEntity, T>, CancellationToken)

Returns the only value of specified database recordset column; this method throws an exception if no record or more than one record exists.

SingleOrDefaultAsync<TEntity, T>(DbSet<TEntity>, Func<TEntity, T>, CancellationToken)

Returns the only value of specified database recordset column, or a default value if no record exists; this method throws an exception if more than one records exist.

  • Improve this Doc
  • View Source
Back to top Copyright © Weifen Luo | DevZest