温馨提示:代码在线浏览功能只能做为源码浏览参考,如果想更进一步了解该代码请下载:AfritxiaWebTest2.0源码
当前文件:
AfritxiaWebTest20/Net.AfritXia.Data/IEntityPropertyPutter.cs[1K,2009-6-12 11:31:34],打开代码结构图
AfritxiaWebTest20/Net.AfritXia.Data/IEntityPropertyPutter.cs[1K,2009-6-12 11:31:34],打开代码结构图1/* 2
* IEntityPropertyPutter.cs @Microsoft Visual Studio 2008 <.NET Framework 2.0 (or Higher)> 3
* AfritXia, Web@ZhouLang.Net 4
* 2008/6/30 5
* 6
* Copyright(c) http://www.Bincess.CN/ 7
* 8
*/ 9
10
using System; 11
using System.Data.Common; 12
13
namespace Net.AfritXia.Data 14
{ 15
/// <summary> 16
/// 实体属性设置器 17
/// </summary> 18
/// <typeparam name="T"></typeparam> 19
public interface IEntityPropertyPutter<T> where T : class 20
{ 21
/// <summary> 22
/// 设置实体属性 23
/// </summary> 24
/// <param name="fromEntity">实体</param> 25
/// <param name="dr">数据源</param> 26
void PutEntityProperties(T entity, DbDataReader dr); 27
28
/// <summary> 29
/// 获取实体类型名称 30
/// </summary> 31
/// <remarks> 32
/// 该属性主要用于自动生成代码的调试和跟踪出错信息。 33
/// 如果手动实现该接口,则可以直接返回 null 34
/// </remarks> 35
string EntityTypeName 36
{ 37
get; 38
} 39
40
/// <summary> 41
/// 获取当前实体属性名称 42
/// </summary> 43
/// <remarks> 44
/// 该属性主要用于自动生成代码的调试和跟踪出错信息。 45
/// 如果手动实现该接口,则可以直接返回 null 46
/// </remarks> 47
string CurrentPropName 48
{ 49
get; 50
} 51
52
/// <summary> 53
/// 获取当前数据库列名称 54
/// </summary> 55
/// <remarks> 56
/// 该属性主要用于自动生成代码的调试和跟踪出错信息。 57
/// 如果手动实现该接口,则可以直接返回 null 58
/// </remarks> 59
string CurrentDBColName 60
{ 61
get; 62
} 63
} 64
}




* IEntityPropertyPutter.cs @Microsoft Visual Studio 2008 <.NET Framework 2.0 (or Higher)>

