User Entity Interface File

Apr 6, 2011 at 6:08 PM

I just noticed that the interface files for EFDAL entity context objects (in the Interfaces project) reference the partial entity context class, not the entity context interface. Is this correct?

Example:

namespace JumpForJoySoftware.T2T.EFDAL.Interfaces
{
	partial class T2TEntities
	{
	}
}
I guess I would've expected the partial to be "partial interface T2TEntities

Coordinator
Apr 13, 2011 at 2:14 PM

Where do you see this? I cannot find a code snippet similar to this in the Interfaces project. Please give me a little more.

Apr 13, 2011 at 3:05 PM

Here's the entity interface file from a simple test project I built:

namespace J4J.ClassTest.EFDAL.Interfaces
{
	partial class ClassTestEntities
	{
	}
}

and here's the related .generated file:

using System;
using System.Linq;
using System.Data.Objects;
using System.Data.Objects.DataClasses;
using System.ComponentModel;
using System.Runtime.Serialization;
using System.Collections.Generic;
using J4J.ClassTest.EFDAL.Interfaces.Entity;

namespace J4J.ClassTest.EFDAL.Interfaces
{
	#region Entity Context

	/// <summary>
	/// There are no comments for ClassTestEntities in the schema.
	/// </summary>
	public partial interface IClassTestEntities : System.IDisposable
	{
		/// <summary>
		/// There are no comments for asset in the schema.
		/// </summary>
		IObjectSet<J4J.ClassTest.EFDAL.Interfaces.Entity.Iasset> asset { get ; }

		/// <summary>
		/// There are no comments for content in the schema.
		/// </summary>
		IObjectSet<J4J.ClassTest.EFDAL.Interfaces.Entity.Icontent> content { get ; }

		/// <summary>
		/// There are no comments for forum in the schema.
		/// </summary>
		IObjectSet<J4J.ClassTest.EFDAL.Interfaces.Entity.Iforum> forum { get ; }

		/// <summary>
		/// There are no comments for item in the schema.
		/// </summary>
		IObjectSet<J4J.ClassTest.EFDAL.Interfaces.Entity.Iitem> item { get ; }

		/// <summary>
		/// There are no comments for item_container in the schema.
		/// </summary>
		IObjectSet<J4J.ClassTest.EFDAL.Interfaces.Entity.Iitem_container> item_container { get ; }

		/// <summary>
		/// There are no comments for member in the schema.
		/// </summary>
		IObjectSet<J4J.ClassTest.EFDAL.Interfaces.Entity.Imember> member { get ; }

		/// <summary>
		/// There are no comments for posting in the schema.
		/// </summary>
		IObjectSet<J4J.ClassTest.EFDAL.Interfaces.Entity.Iposting> posting { get ; }

		/// <summary>
		/// There are no comments for recursive_container in the schema.
		/// </summary>
		IObjectSet<J4J.ClassTest.EFDAL.Interfaces.Entity.Irecursive_container> recursive_container { get ; }

		/// <summary>
		/// There are no comments for topic in the schema.
		/// </summary>
		IObjectSet<J4J.ClassTest.EFDAL.Interfaces.Entity.Itopic> topic { get ; }

		#region AddItem Method

		/// <summary>
		/// Adds an object to the object context.
		/// </summary>
		/// <param name="entity">The entity to add</param>
		void AddItem(Widgetsphere.EFCore.DataAccess.IBusinessObject entity);

		#endregion

		#region DeleteItem Methods

		/// <summary>
		/// Marks an object for deletion.
		/// </summary>
		/// <param name="entity">An object that specifies the entity to delete. The object can be in any state except System.Data.EntityState.Detached.</param>
		void DeleteItem(Widgetsphere.EFCore.DataAccess.IBusinessObject entity);

		/// <summary>
		/// Marks an set of objects for deletion.
		/// </summary>
		/// <param name="entityList">A list of IBusinessObject objects to mark for deletion</param>
		void DeleteItem(IEnumerable<Widgetsphere.EFCore.DataAccess.IBusinessObject> entityList);

		#endregion

	}

	#endregion

}


Coordinator
Apr 13, 2011 at 6:08 PM

Oh. I finally get what you are saying. Sorry. The partial class is generated wrong. This will be fixed in the next version. Thanks.