【发布时间】:2011-02-22 18:25:14
【问题描述】:
我尝试使用 asp.net 配置文件,我尝试使用 ProfileBase 进行继承
public class dort_islem : ProfileBase
{
public int ilk_sayi { get; set; }
public int ikinci_sayi { get; set; }
}
<anonymousIdentification enabled="true"/>
<profile enabled="true" inherits="dort_islem">
<providers>
<clear/>
<add name="AspNetSqlProfileProvider" type="System.Web.Profile.SqlProfileProvider" connectionStringName="profiller"/>
</providers>
<properties>
<add name="ad" allowAnonymous="true" defaultValue="yusuf"/>
<add name="soy_ad" allowAnonymous="true"/>
<add name="sevdigi_renk" allowAnonymous="true" type="System.Drawing.Color" serializeAs="Binary" />
<group name="detaylar">
<add name="numara" type="Integer" allowAnonymous="true"/>
<add name="giris_tarihi" type="Date" allowAnonymous="true"/>
<add name="cinsiyet" allowAnonymous="true"/>
<add name="adres" allowAnonymous="true"/>
</group>
</properties>
</profile>
我如何从 dort_islem 课程中看到 ilk_sayi?问候....
【问题讨论】:
标签: c# asp.net .net-3.5 visual-studio-2010