Take the 2-minute tour ×
Programmers Stack Exchange is a question and answer site for professional programmers interested in conceptual questions about software development. It's 100% free.

I have a lot of database experience, but virtually no application programming experience. At work, we have an EDMX? model generated from entities in the database, and we transform T4 templates to create what I assume are classes. I think this is the Entity Framework? From there, the application (in C#) takes the data and (uses an MVC structure?) to bind the data to XAML (it is a Silverlight application). I assume the XAML is embedded into the webpage using Javascript, which is contained in HTML.

I struggle to find a generic top-down roadmap online that can explain how data gets passed around in such a structure, but I was wondering if anyone had a good solid explanation of how this generally works? If I can get a clearer picture of how data is passed, I can figure out what areas I need to improve on, knowledge-wise.

share|improve this question

closed as off-topic by Ixrec, ChrisF Apr 29 at 23:37

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Questions seeking career or education advice are off topic on Programmers. They are only meaningful to the asker and do not generate lasting value for the broader programming community. Furthermore, in most cases, any answer is going to be a subjective opinion that may not take into account all the nuances of a (your) particular circumstance." – Ixrec, ChrisF
If this question can be reworded to fit the rules in the help center, please edit the question.

    
How much experience do you have in object-orientation? –  Robert Harvey Apr 29 at 21:29
    
possible duplicate of Best Practices: Database app programming patterns –  gnat Apr 29 at 21:41
    
see also: OOP and relational databases –  gnat Apr 29 at 21:42
    
I have a good amount of experience in the basics of Java, C++ and C#. Basically I struggle to understand the definition of Entity Framework, and the blurred line between that and MVC. I was told to do some research on MVC, and I am trying to connect the dots, basically. I really appreciate the help. Due to the hold, I will probably reword the question to be a little clearer and more solid. –  Skyler Sedate Apr 30 at 14:15

1 Answer 1

up vote 0 down vote accepted

Entity Framework is an Object-Relational Mapper; it translates the results of SQL queries into objects and collections. For example, this query:

SELECT name, address, city, state, zip FROM customers;

might produce a collection

IEnumerable<customer> result

of objects that looks like this:

public class Customer
{
    public string Name { get; set; }
    public string Address { get; set; }
    public string City { get; set; }
    public string State { get; set; }
    public string Zip { get; set; }
}

What happens from there depends on your application's structure. The ASP.NET server may expose a series of REST services that produce JSON or XML that is consumed by the Silverlight app (the usual arrangement):

 {
     "firstName": "John",
     "lastName": "Smith",
     "age": 25,
     "address":
     {
         "streetAddress": "21 2nd Street",
         "city": "New York",
         "state": "NY",
         "postalCode": "10021"
     },
     "phoneNumber":
     [
         {
           "type": "home",
           "number": "212 555-1234"
         },
         {
           "type": "fax",
           "number": "646 555-4567"
         }
     ]
 }
share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.