Click here to Skip to main content
15,886,199 members
Articles / Programming Languages / C#

Parsing the Entity Framework EDMX file

Rate me:
Please Sign up or sign in to vote.
4.38/5 (7 votes)
3 Jun 2010CPOL4 min read 58.5K   1.2K   26  
Looking at ways to parse an Entity Framework EDMX file
using System.Collections.Generic;

namespace EdmxLibrary.DataObjects
{
	public class EntityType
	{
		public string EntityTypeName { get; set; }
		public string EntityTypeNamespace { get; set; }
		public string BaseTypeName { get; set; }
		public string BaseTypeNamespace { get; set; }
		public bool IsAbstract { get; set; }

		public List<ScalarProperty> ScalarProperties { get; private set; }
		public List<NavigationProperty> NavigationProperties { get; private set; }

		/// <summary>
		/// 
		/// </summary>
		public EntityType()
		{
			ScalarProperties = new List<ScalarProperty>();
			NavigationProperties = new List<NavigationProperty>();
		}
	}
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer (Senior) Webbert Solutions
United States United States
Dave is an independent consultant working in a variety of industries utilizing Microsoft .NET technologies.

Comments and Discussions