Click here to Skip to main content
15,909,193 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Dear all,
I'm doing a WCF project. I have a interface:
VB
Public Interface IProxy
    <OperationContract()>
    Function fnGetAnChi(MauSo_ As String) As List(Of TenAnChi)
    <OperationContract()>
    Function fnSaveAnChi(lstAnChi As List(Of TenAnChi))
End Interface
<DataContract()>
Public Class TenAnChi
    <DataMember()>
    Private MauSo_ As String
    Public Property MauSo() As String
        Get
            Return MauSo_
        End Get
        Set(ByVal value As String)
            MauSo_ = value
        End Set
    End Property

    <DataMember()>
    Private AnChi_ As String
    Public Property AnChi() As String
        Get
            Return AnChi_
        End Get
        Set(ByVal value As String)
            AnChi_ = value
        End Set
    End Property
End Class

I was loading data from table successfuly then i removed, added items into list over the operations in List. The function fnSaveAnChi need to update data stored in list into a table in database with column name same with properties in class TenAnChi. I want to re-define Function fnSaveAnChi(lstAnChi As List(Of TenAnChi)) in implemented class to do. I wish i do that over LINQ. Pls help me!
Posted
Comments
SASS_Shooter 27-Jun-12 14:00pm    
This question has nothing to do with C#

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900