获取用户IP 查找所在城市

摘要: 一、获取IP常用方法 public class BaseAPIController : ApiController { /// <summary> 获取客户端访问IP /// </summary> protected string CurrentUserIP { get { string realR 阅读全文
posted @ 2014-10-27 14:12 月&&生 阅读(392) 评论(0) 推荐(0) 编辑

MVC 日常所用

摘要: 1、web.config中的runAllManagedModulesForAllRequests属性 runAllManagedModulesForAllRequests 在ASP.net中的web.config中,modules的这个属性比较重要。由于是在Global.ascx中,如想对每个Req 阅读全文
posted @ 2014-10-21 17:48 月&&生 阅读(137) 评论(0) 推荐(0) 编辑

SQLServer·面试题

摘要: 1、触发器 存取款 题目、活期存款中,“储户”通过“存取款单”和“储蓄所”发生联系。假定储户包括:账号,姓名,电话,地址,存款额;“储蓄所”包括:储蓄所编号,名称,电话,地址(假定一个储户可以在不同得储蓄所存取款) 1、写出设计以上表格的语句(4分) 2、创建一个触发器TR1完成下面内容: 当向“存 阅读全文
posted @ 2014-05-28 15:09 月&&生 阅读(276) 评论(0) 推荐(0) 编辑

关于WCF开发 相应流程注意事项

摘要: 一、根据逻辑模型设计数据库 二、添加实体类 类前加 [Description("仲裁实体")]//用于描述实体名称 [Serializable]//表示可序列化 [DataContract]//代表数据契约 表示可在服务器端和客户端可以传送 属性前加 [DataMember]//表示可在客户端见到的 阅读全文
posted @ 2014-05-08 11:15 月&&生 阅读(122) 评论(0) 推荐(0) 编辑

存储过程更新

摘要: USE [NLISSST]GO/****** Object: StoredProcedure [SST].[sp_ArbitrationUpdateByID] Script Date: 05/08/2014 10:29:59 ******/SET ANSI_NULLS ONGOSET QUOTED_ 阅读全文
posted @ 2014-05-08 10:30 月&&生 阅读(618) 评论(0) 推荐(0) 编辑

存储过程删除举例

摘要: USE [NLISSST]GO/****** Object: StoredProcedure [SST].[sp_ArbitrationDeleteByID] Script Date: 05/08/2014 10:26:49 ******/SET ANSI_NULLS ONGOSET QUOTED_ 阅读全文
posted @ 2014-05-08 10:28 月&&生 阅读(167) 评论(0) 推荐(0) 编辑

存储过程添加举例

摘要: USE [NLISSST]GO/****** Object: StoredProcedure [SST].[sp_ArbitrationAdd] Script Date: 05/08/2014 09:11:16 ******/SET ANSI_NULLS ONGOSET QUOTED_IDENTIF 阅读全文
posted @ 2014-05-08 09:25 月&&生 阅读(219) 评论(0) 推荐(0) 编辑

C# 多线程

摘要: 1、摇奖机的实现 using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; usin 阅读全文
posted @ 2013-12-15 12:55 月&&生 阅读(202) 评论(0) 推荐(0) 编辑

C# 委托

摘要: 1、委托的异步调用 using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; usi 阅读全文
posted @ 2013-12-15 10:54 月&&生 阅读(212) 评论(0) 推荐(0) 编辑

全局处理程序图片防盗链

摘要: using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.Security;using System.Web.SessionState;namespace Web 阅读全文
posted @ 2013-12-14 20:34 月&&生 阅读(218) 评论(0) 推荐(0) 编辑