摘要: 阅读全文
posted @ 2018-08-29 16:57 IT路上的小白 阅读(114) 评论(0) 推荐(0) 编辑
摘要: https://www.isharepc.com/2776.html 阅读全文
posted @ 2018-08-20 19:44 IT路上的小白 阅读(169) 评论(0) 推荐(0) 编辑
摘要: 1.Json字符串普通格式解析(常用) 其他写法: 解析Josn列表数据: 以上Json的返回的数据: 解析成自定义实体类列表: 博客园 首页 新随笔 新文章 联系 管理 订阅 博客园 首页 新随笔 新文章 联系 管理 订阅 C#解析JSON字符串总结 JSON文件读取到内存中就是字符串,.NET操 阅读全文
posted @ 2018-08-20 13:07 IT路上的小白 阅读(1342) 评论(0) 推荐(0) 编辑
摘要: 今天学了一下.net的WCF组件,边心血来潮,想着现在不都是前后分离,调接口开发不,于是赶紧写了一简单的后台数据,哈哈 废话不多说,直接上代码; 注意需要导入库! 实体类:Customer using System; using System.Collections.Generic; using S 阅读全文
posted @ 2018-08-20 12:15 IT路上的小白 阅读(6734) 评论(0) 推荐(0) 编辑
摘要: SqlConnection连接池:可以通过连接字符串配置连接池。对象池技术:HttpApplication :Asp.Net生产者 消费者。 线程。应用程序跟数据连接非常耗时,而且连接使用非常频繁,使用连接池可以提高连接对象重用效率SqlCommandExcuteNonQuery() 执行非查询类的 阅读全文
posted @ 2018-08-15 16:06 IT路上的小白 阅读(440) 评论(0) 推荐(0) 编辑
摘要: using System; using System.Collections.Generic; using System.ComponentModel; using System.Configuration; using System.Data; using System.Data.SqlClient; using System.Drawing; using System.IO; using S... 阅读全文
posted @ 2018-08-15 15:57 IT路上的小白 阅读(145) 评论(0) 推荐(0) 编辑
摘要: 写入一个XML文件 using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Xml; namespace _03写入一个XML文件 { class Progr 阅读全文
posted @ 2018-08-15 15:32 IT路上的小白 阅读(110) 评论(0) 推荐(0) 编辑
摘要: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.IO; namespace _02Directory { class Program { static 阅读全文
posted @ 2018-08-15 15:11 IT路上的小白 阅读(105) 评论(0) 推荐(0) 编辑
摘要: 对VS2012的理解 1、导入命名空间 命名空间就是类的"文件夹"。类就是"文件夹"中的文件。需要导入命名空间 添加引用: 如果我需要在一个项目中,访问另一个项目中的某一个类 >添加对另一个项目的引用 >导入命名空间 2、静态和非静态 静态成员:被static修饰 实例成员:不被static修饰 静 阅读全文
posted @ 2018-08-15 14:50 IT路上的小白 阅读(108) 评论(0) 推荐(0) 编辑
摘要: 1、变量的命名 首先我们要保证的就是变量的名称一定要有意义(就是我们看到了变量的名字,就知道变量在这段程序中的作用) Camel:多余用给变量或者字段命名,第一个单词的首字母小写,其余每个单词的首字母大写。 我们给字段命名,前面必须加下划线。 _highSchoolStudent Pascal:要求 阅读全文
posted @ 2018-08-15 14:35 IT路上的小白 阅读(188) 评论(0) 推荐(0) 编辑