本文整理汇总了C#中Data.ListeDonder方法的典型用法代码示例。如果您正苦于以下问题:C# Data.ListeDonder方法的具体用法?C# Data.ListeDonder怎么用?C# Data.ListeDonder使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Data
的用法示例。
在下文中一共展示了Data.ListeDonder方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: SayfalarTumListesi
public dynamic SayfalarTumListesi()
{
List<Page> P = new List<Page>();
//P.Add(new Page { Title = "Anasayfa", Date = DateTime.Now, Image = new PageImages { ImagesId = 1, ImagesPath = "donate_LG.gif" } });
Data D = new Data();
P = D.ListeDonder<Page>("SELECT * FROM site.page;");
return P;
}
示例2: button1_Click
private void button1_Click(object sender, EventArgs e)
{
if (Txt_Ad.Text.Trim() == "" && Txt_Soyad.Text.Trim() == "" && Txt_TcNo.Text.Trim() == "")
{ MessageBox.Show("Hiç bir kriter girmediniz"); return; }
Dictionary<string, object> Param = new Dictionary<string, object>();
Param.Add("@NAME", Encrypt(Txt_Ad.Text.Trim().ToUpper()));
Param.Add("@SURNAME", Encrypt(Txt_Soyad.Text.Trim().ToUpper()));
List<Vatandas> P = new List<Vatandas>();
Data D = new Data();
P = D.ListeDonder<Vatandas>("SELECT * FROM data1 Where NAME = @NAME And SURNAME = @SURNAME", Param);
P.ForEach(x =>
{
x.NAME = Decrtpt(x.NAME);
x.SURNAME = Decrtpt(x.SURNAME);
x.IDENTITY_NO = Decrtpt(x.IDENTITY_NO);
x.M_NAME = Decrtpt(x.M_NAME);
x.F_NAME = Decrtpt(x.F_NAME);
});
dataGridView1.DataSource = P;
}
示例3: LoginList
public static List<Login> LoginList()
{
Data D = new Data();
var P = D.ListeDonder<Login>("Select * From Login ");
return P;
}