11 2018 档案

C# ToShortDateString() ToString() 设置日期格式的区别
摘要:在C#中,ToShortDateString()是用于显示短日期格式的方法,如果使用下面的语句: Label1.Text = DateTime.Now.ToShortDateString(); 那么,在Label1中会显示什么样的短日期格式呢? 答案是:不确定。 可能是:2013-07-26 也可能 阅读全文

posted @ 2018-11-30 17:58 itjeff 阅读(5493) 评论(0) 推荐(0)

读取Excel二进制写入DB,并从DB中读取生成Excel文件
摘要:namespace SendMailSMSService { class Program { static void Main(string[] args) { var connString = SqlDataHelper.GetConnectionString(); //读取Excle文件并写入表中... 阅读全文

posted @ 2018-11-28 13:33 itjeff 阅读(827) 评论(0) 推荐(0)

AutoMapper,对象映射的简单使用
摘要:using AutoMapper; using AutoMapper.Configuration; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AutoMapperTest { c... 阅读全文

posted @ 2018-11-26 13:13 itjeff 阅读(333) 评论(0) 推荐(0)

多语言设置,获取对应的资源文件配置
摘要:class Program { static void Main(string[] args) { var isContinue = true; while (isContinue) { Console.WriteLine("请输入Language Co... 阅读全文

posted @ 2018-11-12 15:05 itjeff 阅读(176) 评论(0) 推荐(0)

导航