You must Sign In to post a response.
  • Category: ASP.Net MVC

    What is the return type of entity framework

    Interview Question

    what is the return type of entity framework

    Regards,

    RAJAN CRP
  • #767783
    Hai Rajan,
    Looks like the question is incomplete,else not explained well. In Entity Framework, the database datatypes gets converted to the respective .Net types like:
    If the database field is of type int, the C# class field will be of System.Int32 or simply int.
    If the database field is of type varchar, the C# class field will be of System.String or simply string.
    All the stored procedures will get converted to the functions which will have the return type as object and actually they are the object collections.
    Hope it will be helpful to you.

    Regards,
    Pawan Awasthi(DNS MVM)
    +91 8123489140 (whatsApp), +60 14365 1476(Malaysia)
    pawansoftit@gmail.com

  • #767802
    Hi,

    Return type is depend up on datatype which you pass for the particular function/method not depend up on framework, now you can decide is their any return type for EntityFramewor ? No, if the datatype is "int" then return type should be "int", if the datatype is DataSet then return type is "DataSet".

    --------------------------------------------------------------------------------
    Give respect to your work, Instead of trying to impress your boss.

    N@veen
    Blog : http://naveens-dotnet.blogspot.in/


  • Sign In to post your comments