[DbType("smallint(2)")] is working, but I need [DbType("smallint(2) NOT")]
[DbType("smallint(2) NOT")] ==> I test for any collection, it does not work.
in MsSql DB (version 2014) , this column Allow Nulls is checked (true)
Example 1:
C#private tblSubeler fSubeKodu;
[DbType("smallint(2) NOT")] // not working.
[Index(0)]
[Indexed(@"FisFatNo", Name = @"tblFisSiparis_IND_1"), Browsable(false)]
[Association(@"tblFisSiparis-tblSubeler")]
public tblSubeler SubeKodu
{
get { return fSubeKodu; }
set { SetPropertyValue<tblSubeler>("SubeKodu", ref fSubeKodu, value); }
}
Example 2:
C#private tblCariSabit fCariKodu;
[DbType("nvarchar(15) NOT")] // not working.
[Persistent("CariKodu"), Size(15), Indexed(Name = @"CariKodu_UNIQUE")]
[RuleRequiredField("tblCariSabit.CariKodu", DefaultContexts.Save, "Cari Kodu boş geçilemez.")]
public tblCariSabit CariKodu
{
get { return fCariKodu; }
set { SetPropertyValue<tblCariSabit>("CariKodu", ref fCariKodu, value); }
}