I'm using .NET Framework 3.5. So I think the EF is also 3.5. I saw something here: EF3.5 don't Singularize or Pluralize names.
Unfortunately in the current version of the Entity Framework, which ships in .NET 3.5 SP1, we don't make any attempt to Singularize or Pluralize names when reverse engineering a model from the database.
And in my MVC2 project, I want to code a partial class For Orders for form validation purposes. Which is correct? Can you suggest some sample files.
public partial class Order { ... }
public partial class Orders { ... }
The code from my .cs after .edmx:
public partial class Questions : global::System.Data.Objects.DataClasses.EntityObject
{
/// <summary>
/// Create a new Questions object.
/// </summary>
/// <param name="questionnaireGUID">Initial value of QuestionnaireGUID.</param>
public static Questions CreateQuestions(string questionnaireGUID)
{
Questions questions = new Questions();
questions.QuestionnaireGUID = questionnaireGUID;
return questions;
}