c# - Do we need to create Class file for page of website in Asp.net? -
i newbie , learning asp.net. building web application(admin panel) interact db. earlier, when created web application assignments, wrote code insert/delete etc in code behind of asp pages either using sqldatasource or manually writing code. now, learning use ajax/jquery , json crud operations aspx page , have seen class file being created(youtube video). confused why class file created. what's purpose ? practice create classes aspx pages.
i created class files winforms in c#. totally confused.i read msdn did not understand purpose of entity framework in terms of benefits.
please me information.
the main benefit , motive behind having separate class behind page avail decoupling of html code , c# code. little bit decoupled. example if have 1 guy working on html side , 1 coder doing server side, imagine how both of these guys can work @ same time. 1 coder work on .cs file independently , html coder keep on evolving , feel.
entity framework nothing wrapper on database interaction , reduce line of code write make connection database , operation , no body forcing use it. 1 of best practice purpose of better maintainability.
Comments
Post a Comment