When working with Web applications, use a context instance per request. Install-Package EntityFramework -Version using System.Data.Entity; public clas ...
分类:
其他好文 时间:
2020-07-16 11:45:43
阅读次数:
67
一,引用ocelot,本文测试16版本有BUG,只好使用15.0.7 二,startup的配置,很简单,就是注册和添加管道 using System; using System.Collections.Generic; using System.Linq; using System.Threadin ...
分类:
Web程序 时间:
2020-07-15 10:44:39
阅读次数:
92
前言 建立Web Api项目 在同一个解决方案下建立一个Web Api项目IdentityServer4.WebApi,然后修改Web Api的launchSettings.json。参考第一节,当然可以不修改的,端口号为5001。 { "profiles": { "IdentityServer4. ...
分类:
Web程序 时间:
2020-07-14 21:43:42
阅读次数:
93
package com.test; import org.apache.http.HttpEntity; import org.apache.http.client.entity.UrlEncodedFormEntity; import org.apache.http.client.methods. ...
分类:
编程语言 时间:
2020-07-14 16:27:47
阅读次数:
472
(1)、entity(实体)entity的意思就是实体的意思,所以也是最常用到的,entity包中的类是必须和数据库相对应的,比如说:数据库有个user表,字段有long类型的id,string类型的姓名,那么entity中的user类也必须是含有这两个字段的,且类型必须一致。不能数据库存的是lon ...
分类:
其他好文 时间:
2020-07-14 00:35:14
阅读次数:
72
Java面试题——随机题(一),看看哪些你会哪些你不会 博客说明 文章所涉及的资料来自互联网整理和个人总结,意在于个人学习和经验汇总,如有什么地方侵权,请联系本人删除,谢谢! 请说明一下EJB的几种类型分别是什么? 会话(Session)Bean、实体(Entity)Bean 、消息驱动的(Mess ...
分类:
编程语言 时间:
2020-07-13 13:36:57
阅读次数:
74
PO:持久对象 (persistent object),po(persistent object)就是在Object/Relation Mapping框架中的Entity,po的每个属性基本上都对应数据库表里面的某个字段。完全是一个符合Java Bean规范的纯Java对象,没有增加别的属性和方法。 ...
分类:
编程语言 时间:
2020-07-13 12:00:25
阅读次数:
63
/// <summary> /// 私有辅助方法 /// </summary> /// <param name="db"></param> /// <param name="entity"></param> private void UpdateHelper(T db, T entity) { fo ...
学习地址:https://www.bilibili.com/video/BV1mf4y1S72o?p=18 实例练习一(创建一个柱的族) using System; using System.Collections.Generic; using System.Linq; using System.T ...
分类:
其他好文 时间:
2020-07-12 16:24:00
阅读次数:
82
学习地址:https://www.bilibili.com/video/BV1mf4y1S72o?p=11 实例练习一 using System; using System.Collections.Generic; using System.Linq; using System.Text; usin ...
分类:
其他好文 时间:
2020-07-11 21:22:24
阅读次数:
136