-
Notifications
You must be signed in to change notification settings - Fork 1.4k
f.Utilities
sunkaixuan edited this page May 7, 2019
·
11 revisions
Some common functions
var list = db.Utilities.DataTableToList(datatable);| Name | Description | Return type |
|---|---|---|
| DataReaderToExpandoObject | ExpandoObject | |
| DataReaderToExpandoObjectList | List | |
| DataReaderToList | List | |
| SerializeObject | string | |
| DeserializeObject | string | |
| TranslateCopy | T | |
| DeserializeObject | T | |
| DataTableToDynamic | dynamic | |
| DataTableToList | List | |
| DataTableToDictionary | Dictionary<string, object> | |
| RemoveCacheAll | Clear the cache in ORM | |
| PageEach | Memory Page |
List<int> ids = Enumerable.Range(1, 100000).ToList();
db.Utilities.PageEach(ids, 10, list =>
{
//list.Count()==10
});