Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8584657
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T21:49:27+00:00 2026-06-11T21:49:27+00:00

I am trying to create an Entity Data Model using the new U2 Toolkit

  • 0

I am trying to create an Entity Data Model using the new U2 Toolkit .net U2.Data.Client.

I have gone through the EntityFrameWork example that already has a Customer.edmx file created which works fine.

I now want to create my own Entity Data Model but am unsure where to start.

I have tried creating an empty model and manually add my entities but am unsure how to link them to a table.

I have also tried to connect to a Univese database but unsure on how to connect to the database.

Any help please.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T21:49:28+00:00Added an answer on June 11, 2026 at 9:49 pm

    We are working on Visual Studio Add-ins for U2 Database. It will allow Server Explorer Integration and hence you can use DataSet Designer or EDM Designer. In Server Explorer, you will see Tables, Views and Subroutines. We will go EAP soon.

    For now , you can do the following:

    • Create empty model.
    • From EDM Designer, drop one entity , give some name
    • Create two Properties, ID (int) and FirstName (string)
    • For example, Student, Students, ID, FirstName
    • Now , open the student.edmx file in XML Editor. For example, Right Click on student.edmx file and choose Open With->XML Text Editor
    • You will see SSDL, CSDL amd MSL
    • CSDL will have entity and two properties
    • SSDL and MSL should be Empty
      Now replace this line :

    Schema xmlns=”http://schemas.microsoft.com/ado/2009/02/edm/ssdl” Namespace=”Model1.Store” Alias=”Self” Provider=”System.Data.SqlClient” ProviderManifestToken=”2005″

    with

    Schema xmlns=”http://schemas.microsoft.com/ado/2009/02/edm/ssdl” Namespace=”Student.Store” Alias=”Self” Provider=”U2.Data.Client” ProviderManifestToken=”UNIDATA, 07.02.0000″

    • In SSDL, add the following

              <EntityContainer Name="StudentTargetContainer" >
                 <EntitySet Name="STUDENT" EntityType="Student.Store.STUDENT_NF_SUB"  />
             </EntityContainer>
        <EntityType Name="STUDENT">
            <Key>
                <PropertyRef Name="ID" />
      
            </Key>
            <Property Name="ID" Type="int" Nullable="false"  />
            <Property Name="FNAME" Type="varchar" MaxLength="25" />
      
        </EntityType>
      
    • Save the File.

    • Now double click student.edmx file to open in the Designer.
    • Time to time, you open student.edmx either in XML editor or EDM Designer.
      One content two views
    • Open Mapping Details Window. Right click on Entity -> Table Mapping
    • Map ID ->ID and FirstName-FNAME
    • Open App.config file and add the following
    <add name="StudentContainer" connectionString="metadata=res://*/Student.csdl|res://*/Student.ssdl|res://*/Student.msl;provider=U2.Data.Client;provider connection string=&quot;Database=demo;User ID=user;Password=pass;Server=localhost;Persist Security Info=True;Pooling=False;ServerType=unidata&quot;" providerName="System.Data.EntityClient"/>
    

    • Open Program.cs file and add this LINQ Query

    StudentContainer ctx = new StudentContainer();
    var q =ctx.Students.ToList();

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to use a view to create an ADO.NET entity using a view.
I am trying to create a Entity Data Model via an existing database, So
Using asp.NET MVC3, I am creating trying to create an abstract class/model with the
I am new to .net mvc. I am trying to create a model with
I am trying to create a web app using ASP.Net MVC3, Entity Framework and
I'm trying to create ASP.NET MVC Application with Entity Framework, which has One to
I am trying to create data model for a graph with Node and Edge.
I have a rather simple data model, but I have a centric entity called
I have an application that contains methods that work with data using Entity Framework
I'm trying to create a function that takes any table from my ADO.NET Data

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.