close

        1.建立Entties

        2.code as follows

        testEntities1 MyTable = new testEntities1();
        var GetRecord = (from data in MyTable.Table1
                   where data.id = 123
                   select data);
        string result = "";        
        foreach(var aa in abc2)
        {           
            result += aa.ColA ;
        }
        TextBox1.Text = result;

arrow
arrow
    全站熱搜
    創作者介紹
    創作者 AndrewHsiao 的頭像
    AndrewHsiao

    Andrew的部落格

    AndrewHsiao 發表在 痞客邦 留言(0) 人氣()