上一页 1 ··· 12 13 14 15 16 17 18 19 20 ··· 26 下一页
摘要: 设计数据库表T_OperationLog。如下:在MOdel中建一个T_OperationLog类,代码如下;using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace HRMSys.Model{ public class T_OperationLog { public System.Guid Id { get; set; } public System.Guid OperatorId { get; set; } pu... 阅读全文
posted @ 2013-08-05 19:20 秋水惜朝 阅读(362) 评论(0) 推荐(0)
摘要: 来源于网络1. SqlConnection(DBConnection) 建立程序与数据库的链接 链接字符串有两种形式://使用Windows验证 SSPI(安全支持提供程序接口)String theConnectionString =”Data Source=.express; Initial Catalog=DataBase; Intergrated Security=SSPI”;//使用SQL Server身份验证String theConnectionString=”Data Source=.express; Initial Catalog=DataBase; User ID=XX; P 阅读全文
posted @ 2013-08-04 17:57 秋水惜朝 阅读(253) 评论(0) 推荐(0)
摘要: 摘自于网络:http://blog.csdn.net/bupt_zoucq/article/details/6653385FillSchema是用来向DataTable中填入详细的元数据信息的,例如(column names, primary key, constraints等),但不填入数据。Fill主要是用来填入数据的,它在缺省情况下只填入少量必要的元数据信息,例如(column names, data types)。 所以,一般先用FillSchema来填入详细的元数据信息,再用Fill来填充数据,例如:sqlDataAdapter1.FillSchema(dataSet1,Schema 阅读全文
posted @ 2013-08-04 17:46 秋水惜朝 阅读(878) 评论(0) 推荐(0)
摘要: 我想操作的是利用SqlDataAdapter的几个Command属性(InsertCommand,UpdateCommand,DeleteCommand)来更新数据库代码:SqlConnection conn = new SqlConnection(@"Data Source=.\sqlexpress;Initial Catalog=newsystem;Integrated Security=True"); SqlDataAdapter da = new SqlDataAdapter("select * from comment", conn);//这里 阅读全文
posted @ 2013-08-04 17:40 秋水惜朝 阅读(937) 评论(0) 推荐(0)
摘要: select * into B.dbo.a from A.dbo.a就把表同步过去如果只同步表结构select * into B.dbo.a from A.dbo.a where 11 阅读全文
posted @ 2013-08-04 17:31 秋水惜朝 阅读(419) 评论(0) 推荐(0)
摘要: 代码生成器生成MODEL和DAL类和核心技术:1.获取所有表名,select table_name from information_schema tables where table_type='base table';2.执行select 操作,得到的Columns包含了列类型,列名,允许为空等信息(Fill之前要执行FillSchema,否则DataColumn的AllowDBNull永远为true)。不能为空的都是值类型DataType.IsValueType3.StringBuilder可以进行字符串的拼接,AppendLine自动换行4.AppDomain.Curr 阅读全文
posted @ 2013-08-04 17:30 秋水惜朝 阅读(466) 评论(0) 推荐(0)
摘要: IWorkspace接口提供访问工作空间的通用属性和方法,如它的连接属性,以及包含的数据集的方法。如何打开一个数据库 要打开一个数据库,也就意味着我们要得到那个工作空间,而工作空间是一个普通类,也就意味着我们只能从其他类来得到这个工作空间,这个类就是工作空间工厂(WorkspaceFactory),而这个类又是一个抽象类,也就意味着我们只能使用它的子类来实例化一个对象,WorkspaceFactory有众多的子类,我们可以从OMD图中获得。 阅读全文
posted @ 2013-08-03 17:05 秋水惜朝 阅读(513) 评论(0) 推荐(0)
摘要: 第一部分:Geodatabase介绍 Geodatabase是ESRI在ArcInfo8中引入的一种全新的面向对象的空间数据模型,在物理级别上空间数据库分为三种不同的存储形式,即个人数据库,文件数据库,以及面向企业的SDE数据库,个人数据库依赖于微软的ACCESS数据库,也只能在windows平台上运行,除此之外个人数据库有容量的限制,最大存储量不能超过2GB,文件数据库以二进制方式管理空间数据,单张表可以存储1TB,可以通过关键字进行配置,是容量可以扩充到256TB,从这个数据存储层面来说,文件数据库的容量是无限的,而且可以在多个平台上运行,如linux,unix,但是它和个人数据库有一个相 阅读全文
posted @ 2013-08-03 16:49 秋水惜朝 阅读(1290) 评论(0) 推荐(0)
摘要: MembersDescriptionAnnotationPropertiesAnnotation properties.AnnotationPropertiesIDThe UID used for annotation properties.AreaOfInterestThe default area of interest for the layer.CachedIndicates if the layer needs its own display cache.CurrentMapLevelCurrent map level for drawing symbols.DataSourceTy 阅读全文
posted @ 2013-08-03 16:43 秋水惜朝 阅读(1365) 评论(2) 推荐(0)
摘要: DescriptionAreaOfInterestThe default area of interest for the layer.CachedIndicates if the layer needs its own display cache.DataSourceTypeData source type.DisplayFieldPrimary display field.DrawDraws the layer to the specified display for the given draw phase.FeatureClassThe layer's feature clas 阅读全文
posted @ 2013-08-03 16:34 秋水惜朝 阅读(1312) 评论(1) 推荐(0)
上一页 1 ··· 12 13 14 15 16 17 18 19 20 ··· 26 下一页