我不知道元数据是什么意思,大概说是该文件是元数据文件(因为有"[从元数据]"提示),并且该文件不在网站源代码中而是在C:\Documents and Settings\Administrator\Local Settings\Temp\2216$Model.dll$v2.0.50727\Model.T_CMS_Config.cs位置,代码如下:
using System;namespace Model{ [TableName("T_CMS_Config")] public class T_CMS_Config { public T_CMS_Config(); public string Description { get; set; } public bool? IsLink { get; set; } public int? LastModificatorID { get; set; } public string LastModificatorName { get; set; } public DateTime? LastModifyTime { get; set; } [PrimaryKey] public string Name { get; set; } public string Value { get; set; } }}另一个文件位于C:\Documents and Settings\Administrator\Local Settings\Temp\2216$BLL.dll$v2.0.50727\BLL.CMS.ConfigManage.cs位置,代码如下:
using BLL;
using Model;
using System;namespace BLL.CMS
{
public class ConfigManage : BaseBLL<T_CMS_Config>
{
public ConfigManage(); public string GetValue(string name);
}
}又是什么意思,为什么这两个文件不在网站目录中,而是在其它地方,说什么是元数据,不解恳求解答
using System;namespace Model{ [TableName("T_CMS_Config")] public class T_CMS_Config { public T_CMS_Config(); public string Description { get; set; } public bool? IsLink { get; set; } public int? LastModificatorID { get; set; } public string LastModificatorName { get; set; } public DateTime? LastModifyTime { get; set; } [PrimaryKey] public string Name { get; set; } public string Value { get; set; } }}另一个文件位于C:\Documents and Settings\Administrator\Local Settings\Temp\2216$BLL.dll$v2.0.50727\BLL.CMS.ConfigManage.cs位置,代码如下:
using BLL;
using Model;
using System;namespace BLL.CMS
{
public class ConfigManage : BaseBLL<T_CMS_Config>
{
public ConfigManage(); public string GetValue(string name);
}
}又是什么意思,为什么这两个文件不在网站目录中,而是在其它地方,说什么是元数据,不解恳求解答
反射获取的代码的外部接口又是什么意思
本人很菜,不要见笑
反射的意思就是,在没有一个代码库的源代码的情况下,查询出里面有几个类,每个类有哪些方法、属性。每个方法的参数原型是什么等等。
有protected BLL.CMS.ConfigManage configManage = new BLL.CMS.ConfigManage();代码
我是在上面的ConfigManage右击转到定义上就显示了ConfigMannage[从元数据],鼠标放上去就显示
“C:\Documents and Settings\Administrator\Local Settings\Temp\2216$BLL.dll$v2.0.50727\BLL.CMS.ConfigManage.cs[从元数据]”
搞不清楚要在什么地方书写代码才会让vs2008自动产生以上代码
<img src="<%=configManage.GetValue("主题图片1")%>">
我觉得应该是有代码控制地方的,但我又是菜鸟一个,不知道运行机制
虽然没有源代码,但我觉得应该有一处控制地方,怎么才能找到该地方呢?