面向对象的一个重要目标就是对代码重用的支持。支持这个目标的一个重要机制就是泛型机制(generic mechanism):如果出去对象的基本类型外,实现方法是相同的,就可以用泛型实现(generic implementation)来描述这种基本功能。在Java 1.5版本以前,Java并不直接支持泛 ...
分类:
编程语言 时间:
2019-11-06 15:00:22
阅读次数:
106
ORM介绍 ORM概念 对象关系映射(Object Relational Mapping,简称ORM)模式是一种为了解决面向对象与关系数据库存在的互不匹配的现象的技术。 简单的说,ORM是通过使用描述对象和数据库之间映射的元数据,将程序中的对象自动持久化到关系数据库中。 ORM在业务逻辑层和数据库层 ...
分类:
其他好文 时间:
2019-11-05 01:22:31
阅读次数:
92
已知的问题: 1. 调试的时候会报IO 异常,非调试环境是正常的 2. Windows 应用程序才可以使用,可以用非windows应用程序包一层 using System; using System.Collections.Generic; using System.Diagnostics; usi... ...
分类:
移动开发 时间:
2019-11-04 17:25:31
阅读次数:
118
引入DLL:using AForge.Imaging; using AForge.Imaging.Filters; //using AForge.Video.DirectShow;可以使用摄像头图像代码: using System; using System.Collections.Generic;... ...
using System; using System.Collections.Generic; using System.IdentityModel.Tokens.Jwt; using System.Linq; using System.Security.Claims; using System.S... ...
分类:
移动开发 时间:
2019-11-03 10:27:20
阅读次数:
75
using System;using System.Collections.Generic;using System.Data;using System.Linq;using System.Text; namespace ConvertToTable{ class Program { static ...
分类:
其他好文 时间:
2019-11-03 01:27:57
阅读次数:
57
官网下载5.6版本 Linux-Generic版本 https://www.mysql.com/ mysql-5.6.46-linux-glibc2.12-x86_64.tar.gz mysql-5.6.46-linux-glibc2.12-x86_64.tar.gz 1.创建mysql用户组 gr ...
分类:
数据库 时间:
2019-11-02 22:23:07
阅读次数:
114
1.聚合查询 聚合函数 关键字:aggregate from django.db.models import Max,Min,Sum,Count,Avg 2.分组查询 关键字:annotate 统计每一本书的作者个数 统计每一个出版社卖的最便宜的书的价格 统计不止一个作者的图书 查询各个作者出的书的 ...
分类:
其他好文 时间:
2019-10-31 23:34:00
阅读次数:
103
using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Diagnostics; using System.IO; using System.Linq; us... ...
采用的是以DataGridView的形式导出,使用NPOI.dll 1.由于使用的是DataGridView,所以类需要创建在From的Project下,DLL导入NPOI 2.代码如下 using System; using System.Collections.Generic; using Sy ...