Maomi.Mapper 项目地址:https://github.com/whuanle/Maomi.Mapper 注:本项目用于教学目的,性能较差,请勿用于生产环境。 MaomiMapper 是一个使用表达式树构造生成对象成员映射的框架,即对象映射框架。 虽然 MaomiMapper 性能不啥样,[......] 继续阅读
Maomi.Mapper 项目地址:https://github.com/whuanle/Maomi.Mapper 注:本项目用于教学目的,性能较差,请勿用于生产环境。 MaomiMapper 是一个使用表达式树构造生成对象成员映射的框架,即对象映射框架。 虽然 MaomiMapper 性能不啥样,[......] 继续阅读
Maomi.Mapper Project address: https://github.com/whuanle/Maomi.Mapper Note: This project is for educational purposes only and has poor performance; do[......] 继续阅读
最近使用了一个 TinyMapper 对象映射框架,喜欢它的简单。 TinyMapper 文档地址: http://tinymapper.net/ TinyMapper 极其简单,一个静态类即可: TinyMapper.Bind<Person, PersonDto>(); var p[......]继续阅读
Recently, I used a TinyMapper object mapping framework, and I like its simplicity. TinyMapper documentation link: http://tinymapper.net/ TinyMapper is[......] 继续阅读
使用的类型是结构体,如果是对象,则在创建内存块的时候,需要使用别的方式。子所以使用块的形式而不是直接管理一个对象,是基于多个方面考虑的。 1,使用块的形式,可以一次性分配连续的内存;如果逐个分配,会导致碎片太多、每次分配都需要时间; 缺点: 1,不能扩增或减少对象数量、块大小; 2,以块的形式存在,[......] 继续阅读
[TOC] 写博客的过程中,发现很多基础理论太薄弱,因此很多专业词汇可能会解释错误或者不准确,建议读者多参考官方文档或者其它书籍。 本篇主要讲解 ABP 中如何配置、使用对象映射,其中大部分跟 AutoMapper 这个框架有关,建议读者预先学习这个框架,可参考笔者的另一篇博客:浅入 AutoMap[......] 继续阅读
[TOC] During the process of writing this blog, I found that my understanding of many foundational theories was too weak, which may lead to incorrect o[......] 继续阅读
使用Json存储时间需要转为对象时, 要使用如下面的格式 2019-12-06T17:15:52Z Z 表示时区 使用示例: 表示北京时间 2019-12-06T17:15:52+08:00 但是前端、C#时间转换和数据库的时间处理,协调起来会比较麻烦,JSON和字符串转时间也会麻烦。 根据笔者的校[......] 继续阅读
Using JSON to store time requires converting it to an object in the following format: 2019-12-06T17:15:52Z The 'Z' indicates the time zone. For examp[......] 继续阅读