Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
MM 2.1 Business Layer Generator and Foxpro
Message
From
02/06/2006 09:45:08
 
 
To
All
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Title:
MM 2.1 Business Layer Generator and Foxpro
Miscellaneous
Thread ID:
01126743
Message ID:
01126743
Views:
64
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
Next
Reply
Map
View

Click here to load this message in the networking platform