insert data ด้วย linq (General question)

คำตอบ insert data ด้วย linq (General question)

  • 30 ธันวาคม 2554 8:29
    ผู้ดูแล
     
     
    ตัวอย่างโค้ด vb.net สำหรับ insert data เข้าใน sql DataBase จาก SilverLight โดยใช้ linq
    Supa Sethasiripong [MSFT]
    MSDN Community Support | Feedback to us
    Get or Request Code Sample from Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

ตอบทั้งหมด

  • 30 ธันวาคม 2554 8:29
    ผู้ดูแล
     
     คำตอบ

    Dim db As New sql.Web.DataClasses1DataContext


    Dim mys As StudentInfo
    mys = New StudentInfo

    mys.id = "qq"
    mys.subject = "ww"

    db.ones.add(mys) 'error

    db.SubmitChanges()

     


    Supa Sethasiripong [MSFT]
    MSDN Community Support | Feedback to us
    Get or Request Code Sample from Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.


    • แก้ไขโดย supa_sModerator 30 ธันวาคม 2554 8:31
    • ทำเครื่องหมายเป็นคำตอบโดย supa_sModerator 4 มกราคม 2555 5:53
    •