Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
MM 2.1 Business Layer Generator and Foxpro
Message
De
02/06/2006 09:45:08
Larry Anderson
Greenfield Software
London, Royaume Uni
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Titre:
MM 2.1 Business Layer Generator and Foxpro
Divers
Thread ID:
01126743
Message ID:
01126743
Vues:
58
Hi All,

Has anyone successfully used the MM business layer generator with Visual Foxpro (v8) DBF's?

The BusinessEntitys created seem to be missing any type information as in the example:
using System;
using System.Data;

using OakLeaf.MM.Main;
using OakLeaf.MM.Main.Business;
using OakLeaf.MM.Main.Data;

namespace Greenfield.Growmaster.Business
{
	/// <summary>
	/// Summary description for InventEntity.
	/// </summary>
	[Serializable]
	public class InventEntity : ABusinessEntity
	{
	        /// <summary>
		/// ean13
		/// </summary>
		public ean13
		{
			get { return ()mmType.GetNonNullableDbValue(this.Row["ean13"], "System."); }
			set { this.Row["ean13"] = value; }
		}

		/// <summary>
		/// lname
		/// </summary>
		public  lname
		{
			get { return ()mmType.GetNonNullableDbValue(this.Row["lname"], "System."); }
			set { this.Row["lname"] = value; }
		}

		/// <summary>
		/// passno
		/// </summary>
		public  passno
		{
			get { return ()mmType.GetNonNullableDbValue(this.Row["passno"], "System."); }
			set { this.Row["passno"] = value; }
		}
etc, etc.

The first field ean13 should be public string ean13 and the return of the get should be cast to string. A similar problem exists in the BusinessRules classes.

Many thanks for any assistance.
Regards

Larry Anderson
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform