zoukankan      html  css  js  c++  java
  • ABP源码分析十五:ABP中的实用扩展方法

    类名

    扩展的类型

    方法名

    参数

    作用

    XmlNodeExtensions

    XmlNode

    GetAttributeValueOrNull

    attributeName

    Gets an   attribute's value from an Xml node.

    JsonExtensions

    object

    ToJsonString

    bool   camelCase

    bool   indented

    Converts   given object to JSON string.

    StreamExtensions

    Stream

    GetAllBytes

     

    Get all   bytes from a steam

    LockExtensions

    object

    Locking

    Action

    Executes   given action by locking given source object.

    LockExtensions

    T

    Locking<T>

    Action<T>

    Executes   given action by locking given source object.

    LockExtensions

    object

    Locking<TResult>

    Func<TResult>

    Executes   given func and returns it's value by locking given source object.

    LockExtensions

    T

    Locking<T,   TResult>

    Func<T,   TResult>

    Executes   given func and returns it's value by locking given source object.

    IsolationLevelExtensions

    System.Transactions.IsolationLevel

    ToSystemDataIsolationLevel

    NA

    Converts   System.Transactions.IsolationLevel to System.Data.IsolationLevel

    QueryableExtensions

    IQueryable

    IncludeIf

    bool   condition, string path

    Specifies   the related objects to include in the query results.

    QueryableExtensions

    IQueryable<T>

    IncludeIf<T>

    bool   condition, string path

    Specifies   the related objects to include in the query results.

    QueryableExtensions

    IQueryable<T>

    IncludeIf<T,   TProperty>

    bool   condition, Expression<Func<T, TProperty>> path

    Specifies   the related objects to include in the query results.

    DbContextExtensions

    Type

    GetEntityTypes

    NA

    获取DbContext中的所有entity类型

    MemberInfoExtensions

    MemberInfo

    GetSingleAttributeOrNull<T>

    bool   inherit

    Gets a   single attribute for a member.

     
  • 相关阅读:
    C++中Map的使用 (个人简单的对于String的使用)
    具体数学二项式至生成函数章-----致敬Kunth
    C++中String的使用
    C++中Set的使用
    费马小定理,欧拉函数
    数论---同余法则定理
    灵活利用单链表,顺带一提可持久化链表。
    第2章 数字之魅——数字中的技巧
    Mail.Ru Cup 2018 Round 1
    Lyft Level 5 Challenge 2018
  • 原文地址:https://www.cnblogs.com/1zhk/p/5330889.html
Copyright © 2011-2022 走看看