摘要: USE [master]GO/****** 对象: StoredProcedure [dbo].[KillSpId] 脚本日期: 04/17/2014 16:51:06 ******/SET ANSI_NULLS ONGOSET QUOTED_IDENTIFIER ONGOALTER pro... 阅读全文
posted @ 2014-04-17 16:56 司计勇 阅读(239) 评论(0) 推荐(0) 编辑
摘要: 下面这个是笔者在以前的一个项目中用到的。当时是为了在导出excel报表的时侯,通过自定义特性,包含一些可配置的特性在里面。具体的操作excel不是本文重点,本文不会多做说明。下面只写个示例,简单说明一下如何通过反射获取自定义特性。示例只在类和属性上使用了自定义特性。读者可以按照实际的项目需求,合理使用自定义特性。1、实现实体自定义特性,继承自Attribute类Code/// /// 自定义特性 属性或者类可用 支持继承/// [AttributeUsage(AttributeTargets.Property | AttributeTargets.Class, Inherited = true 阅读全文
posted @ 2014-03-17 09:16 司计勇 阅读(1848) 评论(0) 推荐(0) 编辑
摘要: " /> " /> " /> --> 开始时间: ... 阅读全文
posted @ 2014-01-24 11:14 司计勇 阅读(237) 评论(0) 推荐(0) 编辑
摘要: 市内出车排队队列: ... 阅读全文
posted @ 2014-01-22 15:06 司计勇 阅读(281) 评论(0) 推荐(0) 编辑
摘要: ALTER Trigger [dbo].[triVehicle] On [dbo].[OP_VehicleInfo] for insert As DECLARE @order int;DECLARE @outorder int; set @order = (select max(InSideSort)+1 from OP_VechileState) ;set @outorder = (select max(OutsideSort)+1 from OP_VechileState) ; INSERT into OP_VechileState select inserted.ve... 阅读全文
posted @ 2014-01-14 11:10 司计勇 阅读(131) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2014-01-14 10:57 司计勇 阅读(2) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2014-01-14 10:51 司计勇 阅读(1) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2014-01-14 10:46 司计勇 阅读(0) 评论(0) 推荐(0) 编辑
摘要: --创建数据库create database SQL50--打开SQL50数据库use SQL50--创建雇员表drop table Empdrop table Deptcreate table Emp( Empno numeric(5,0) not null,--雇员的编号 Ename nvarchar(10), --雇员名字 Job nvarchar(9), --雇员的职位 Mgr numeric(5,0),--上级主管的编号 Hiredate datetime, --入职日期 Sal numeric(7,2),--薪金 Comm numeric(7,2),... 阅读全文
posted @ 2014-01-08 14:21 司计勇 阅读(323) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2013-09-24 08:48 司计勇 阅读(1) 评论(0) 推荐(0) 编辑