Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Typed datasets
Message
De
24/02/2006 16:54:46
 
 
À
24/02/2006 10:58:29
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Titre:
Versions des environnements
Environment:
C# 2.0
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01098910
Message ID:
01099068
Vues:
19
>Hi
>
>I have been using typed datasets. I now want to create multiple views, so I edited the datasets designer and changed the line to
>
>public partial class MyDataSet : OakLeaf.MM.Main.Data.mmDataSet {
>
>I now get the error below.
>
>No overload for method 'mmDataSet' takes '3' arguments
>
>What have I forgotten?
>
>TIA
>
>Stuart

I had this exact same problem. I am new to C#, .NET, and MM.NET so I just skipped it and thought I would come back to it later with a little more experience under my belt. I was able to narrow it down to the constructor of the dataset class. If I remember correctly, it calls the base class constructor passing the three arguments up the chain.
protected CurlinesDataSet(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : 
base(info, context, false) {
The problem is the base(info, context, false) part. It appears that the mmDataSet class does not have a constructor that takes three parameters. The new parameter is the false. I think that you could remove the third parameter all together and everything would be OK, but like I said I don't have enough experience to try that yet.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform