Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Adding a calculated field to a Strongly Typed Dataset
Message
De
27/08/2007 17:22:22
Mike Cole
Yellow Lab Technologies
Stanley, Iowa, États-Unis
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
ADO.NET
Titre:
Adding a calculated field to a Strongly Typed Dataset
Divers
Thread ID:
01250771
Message ID:
01250771
Vues:
62
I want to add a calculated field to my DataSet, similar to how I would add a ReadOnly Property to my class that returned a calculation based on other Properties.

I started off with this in the .vb file of the DataSet:
Partial Class PrescreenDataSet

    Private columnStatus As System.Data.DataColumn

    <System.Diagnostics.DebuggerNonUserCodeAttribute()> _
    Public ReadOnly Property StatusColumn() As System.Data.DataColumn
        Get
            Return columnStatus
        End Get
    End Property

End Class
but I don't know how to return a calculation from other fields. Anybody have a template for this?
Very fitting: http://xkcd.com/386/
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform