Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
MmDataAccessBase class problems
Message
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Titre:
MmDataAccessBase class problems
Divers
Thread ID:
00863208
Message ID:
00863208
Vues:
50
I'm having problems with mmDataAccessBase class.
Here is the error message
O:\OTS Business\Common.cs(12): 'IEI.OTS.Business.Common' does not implement inherited abstract member 'OakLeaf.MM.Main.Data.mmDataAccessBase.ConfigureInsertForAutoIncrement(string)'




using System;
using System.Data;
using OakLeaf.MM.Main.Data;
using OakLeaf.MM.Main.Business;
using IEI.OTS;

namespace IEI.OTS.Business
{
///
/// Summary description for Committee.
///

public class Common : mmDataAccessBase
{
public Common()
{
//
// TODO: Add constructor logic here
//
}

public int GetNextSequence(string seqString)
{
// Get a reference to the data access object
mmDataAccessBase dao = this.GetDataAccessObject();

// Create the parameter and set the direction
IDbDataParameter param1 = dao.CreateParameter("pFieldName", seqString);
IDbDataParameter param2 = dao.CreateParameter("oCurValue", 0);
param2.Direction = ParameterDirection.Output;

// Call the stored procedure and pass the parameter
IDbCommand cmd;
this.ExecSprocScalar("GetNextVal", out cmd, param1, param2);

// Retrieve the value from the command object
IDbDataParameter param = (IDbDataParameter)cmd.Parameters["oCurValue"];
int next_value = (int)param.Value;


return next_value;
}


}
}
--------------------------
Clay Angelly
cangelly@ie-inc.com
Never argue with an idiot. They drag you down to their level and beat you with experience.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform