|  | CYQ.Data componentsCYQ.Data support multi-database application  [Txt,Xml,Access, MSSQL, Oracle,SQLite,MySql], help easily and quickly to develop your project | 
MDataTable 原理解析 数据列
| Principles |
										
										|
										
										| | #TopicOwner | 
| 有了数据结构单元的结构类之后,数据单元列集合就得很容易写了,因为,所有的数据单元结构加起来,就成了数据单元列集合了 于是,我们很轻易的写出了以下类:   Code   /**//// <summary>  /// 头列表集合  /// </summary>  public class MDataColumn : List<MDataCellStruct>     {  public MDataColumn()  : base()     {  }  public MDataColumn(int capacity)  : base(capacity)     {  }  } 看,没几行代码 为了以后把该架构缓存到cache里,我们为它加上一个Clone()方法 方法如下:   Code  public MDataColumn Clone()     {  MDataColumn mcs = new MDataColumns(base.Count);   for (int i = 0; i < base.Count; i++)     {  MDataCellStruct mcb = base[i];  mcs.Add(mcb);  }  return mcs;  } 这里再为列集合加上一个添加列的Add重载方法如下;   Code  public void Add(string columnName,System.Data.SqlDbType SqlType)     {  MDataCellStruct mdcStruct = new MDataCellStruct(columnName, SqlType, false, true, 0, System.Data.ParameterDirection.InputOutput);  this.Add(mdcStruct);  } 
 至此,头列表集合就完成了。  | |
Post Comment
Bulletin
Article Search
Categories
- Platform for dynamic (20)
- Feedback (9)
- Guide (33)
- Principles (19)
- Project-Case (8)
- Business & Buy (2)
- Technology exchange (45)
New Article
- CYQ.Data Components Getting Started Guide [Part 5]-[MProc Execute Stored Procedures or SQL]
- CYQ.Data Components Getting Started Guide [Part 4]-[MAction Insert Delete Update]
- CYQ.Data Components Getting Started Guide [Part 3]-[MAction Get And Set Value]
- CYQ.Data Components Getting Started Guide [Part 2]-[MAction Data Query- Fill And Select]
- CYQ.Data Components Getting Started Guide [Part 1]
New Comment
- When some one searches for his necessary thing, therefore he/she wishes to be available that in detail, so that thing is maintained over here.
- This is my first time pay a quick visit at here and i am in fact happy to read everthing at alone place.
- I truly appreciate this blog article.Really thank you! Cool.
- please pay a visit to the web sites we follow, like this one particular, as it represents our picks in the web
- Really enjoyed this post.Really thank you!
- Really enjoyed this article.Really looking forward to read more. Great.
- poker bonuses What are the norms of copyright of web content? How as it different from Patent?
- Wow! Thank you! I permanently needed to write on my blog something like that. Can I implement a fragment of your post to my site?
- This website was how do I say it? Relevant!! Finally I ave found something that helped me. Cheers!
- I was reading through some of your content on this internet site and I believe this web site is very informative ! Continue posting.

