【转】ABP源码分析十五:ABP中的实用扩展方法
| 類(lèi)名 | 擴(kuò)展的類(lèi)型 | 方法名 | 參數(shù) | 作用 |
| 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類(lèi)型 |
| MemberInfoExtensions | MemberInfo | GetSingleAttributeOrNull<T> | bool ? inherit | Gets a ? single attribute for a member. |
?
返回ABP源碼分析系列文章目錄
分類(lèi):?ABP
創(chuàng)作挑戰(zhàn)賽新人創(chuàng)作獎(jiǎng)勵(lì)來(lái)咯,堅(jiān)持創(chuàng)作打卡瓜分現(xiàn)金大獎(jiǎng)總結(jié)
以上是生活随笔為你收集整理的【转】ABP源码分析十五:ABP中的实用扩展方法的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: 新东方主播董宇辉爆火走红:本人自曝一度痛
- 下一篇: 昆凌晒产后出游照 丸子头大长腿气质迷人: