منتديات طلاب جامعة النيلين كلية علوم الحاسوب وتقانة المعلومات الحرية
مرحبا بكم فى منتديات طلاب جامعة النيلين كلية علوم الحاسوب وتقانة المعلومات مركز الحرية للتسيجل معنا اضغط على دخول للخروج اضغط اخفاء نرجو ان تكون معنا عضواء وشكرا
lol! lol! lol! lol!
مرحبــــــــــــــــــــــــــــا بكم فى منتديات طلاب جامعة النيلين
منتديات طلاب جامعة النيلين كلية علوم الحاسوب وتقانة المعلومات الحرية
مرحبا بكم فى منتديات طلاب جامعة النيلين كلية علوم الحاسوب وتقانة المعلومات مركز الحرية للتسيجل معنا اضغط على دخول للخروج اضغط اخفاء نرجو ان تكون معنا عضواء وشكرا
lol! lol! lol! lol!
مرحبــــــــــــــــــــــــــــا بكم فى منتديات طلاب جامعة النيلين
منتديات طلاب جامعة النيلين كلية علوم الحاسوب وتقانة المعلومات الحرية
هل تريد التفاعل مع هذه المساهمة؟ كل ما عليك هو إنشاء حساب جديد ببضع خطوات أو تسجيل الدخول للمتابعة.


مدير المنتدى عبدالرحيم على القيد
 
alhemoالرئيسيةأحدث الصورالتسجيلدخولتحويل شرايط الفيديو الى اسطونات سى دى

الف مبرووووووووووووك النجاح لطلاب جامعة النيلين كلية علوم الحاسوب مركز الحرية للاقسام التالية .تقانة المعلومات- نظم المعلومات - هندسة البرمجيات للعام 2011 الى 2012
--
<______download ______>

لمعرفة نتيجة جامعة النيلين حاسوب الفرقة الثانية تقانة معلومات للعام 2011 _2012اضغط هنا

للدخول للموقع الحيمو لتصميم المواقع اضغط هنا




اضغط هنا للدخول الفيس بوك
مواضيع مماثلة
بحـث
 
 

نتائج البحث
 
Rechercher بحث متقدم
المواضيع الأخيرة
» ماذا تعنى كلمة Troubleshooting
How to build a Dynamic Data website in 60 seconds Emptyالجمعة مارس 04, 2016 7:00 am من طرف alhemo web sit

» تنزيل مباشر لبرنامج الفوتشوب الاصدارة الثامنة حيمكوووووو هاكرز
How to build a Dynamic Data website in 60 seconds Emptyالجمعة فبراير 19, 2016 7:49 am من طرف alhemo web sit

» What is MAC Address?
How to build a Dynamic Data website in 60 seconds Emptyالخميس سبتمبر 24, 2015 11:27 pm من طرف alhemo web sit

» تعرف على مفهوم الشبكات المعزولة عن شبكة الانترنت
How to build a Dynamic Data website in 60 seconds Emptyالسبت سبتمبر 19, 2015 6:28 am من طرف alhemo web sit

» طريقة جميلة للاختراق شبكة معزولة عن شبكة الانترنت
How to build a Dynamic Data website in 60 seconds Emptyالسبت سبتمبر 19, 2015 6:20 am من طرف alhemo web sit

»  شرح طريقةسهلة لعمل safe mode للبلى استيشن
How to build a Dynamic Data website in 60 seconds Emptyالأحد أغسطس 09, 2015 11:46 am من طرف alhemo web sit

» برامج وكورسات علوم الحاسب وتكنولوجيا ونظم المعلومات للبكالوريوس والدراسات العليا
How to build a Dynamic Data website in 60 seconds Emptyالإثنين يوليو 27, 2015 6:49 am من طرف bfci

» برامج وكورسات علوم الحاسب وتكنولوجيا ونظم المعلومات للبكالوريوس والدراسات العليا
How to build a Dynamic Data website in 60 seconds Emptyالأحد يوليو 05, 2015 7:52 pm من طرف bfci

» احلى منتدى
How to build a Dynamic Data website in 60 seconds Emptyالجمعة يناير 30, 2015 1:57 am من طرف عايشه

ازرار التصفُّح
 البوابة
  حيمو الرئيسية
 حيموقائمة الاعضاء
 البيانات الشخصية
 س .و .ج
  حيمو بحـــــث
لتحديث موقع الحيمو يرجى الضغط هنا
منتدى
التبادل الاعلاني برعاية حيمووووووووو

 

 How to build a Dynamic Data website in 60 seconds

اذهب الى الأسفل 
كاتب الموضوعرسالة
alhemo web sit
مدير المنتدى
مدير المنتدى
alhemo web sit


عدد المساهمات : 115
تاريخ التسجيل : 14/05/2010
العمر : 38
الموقع : موقع طلاب جامعة النيلين كلية علوم الحاسوب وتقانة المعلومات

alhemo
الحيمو للمونتاج والدوبلاج:
الحيمو للمونتاج والدوبلاجHow to build a Dynamic Data website in 60 seconds Empty
How to build a Dynamic Data website in 60 seconds Emptyمنتديات طلاب جامعة النيلين كلية علوم الحاسوب مركز الحرية

How to build a Dynamic Data website in 60 seconds Empty
مُساهمةموضوع: How to build a Dynamic Data website in 60 seconds   How to build a Dynamic Data website in 60 seconds Emptyالأحد مارس 31, 2013 11:25 am

Do you want to be able to create a website to edit the records in
your database without having to write any code? Well with Dynamic Data
and .Net it’s easy.

This step by step guide will automagically
create your website so quickly that within a minute from now you’ll be
able to create, read, update and delete the records in your database
tables via your own web application.

For this demo I am going to use our old friend the Northwind database, a SQL Server sample database from Microsoft.
How to build a Dynamic Data website in 60 seconds Northwind_thumb1
Step 1: Open Visual Studio 2010 and create a New Project from the Web template “ASP.NET Dynamic Data Entities Web Application”
How to build a Dynamic Data website in 60 seconds VSaddproject_thumb1
Step 2: Right click on your project and select Add > New item... Within the Data category choose “ADO.NET Entity Data Model”
How to build a Dynamic Data website in 60 seconds Addentitymodel_thumb2
Step 3: Select Generate from database and click Next
How to build a Dynamic Data website in 60 seconds Generatefromdatabase_thumb1
Step
4: Click on the “New Connection…” button to add a new connection to
your database, enter your server and database name, click Test
Connection to make sure your user has access. Assuming the connection
is fine you can click OK.

How to build a Dynamic Data website in 60 seconds Addconnection_thumb1
How to build a Dynamic Data website in 60 seconds Choosedataconnection_thumb3
Step
5: Click Next Smile That step was easy eh?! Just notice the Entity Data
Model name has defaulted to NorthwindEntities. This is important
because we’ll be referencing this object shortly,.

Step 6:
Choose the objects you want your website to interact with. For this
example I’m going to tick the tables box to select all tables. I’ll
manually remove the system table named sysdiagrams as we don’t need to
be interacting with these tables. Now click Finish.

How to build a Dynamic Data website in 60 seconds Chooseyourdatabaseobjects_thumb1
You can now see your tables within the designer view of your Entity model.
How to build a Dynamic Data website in 60 seconds Entitymodel_thumb2
Step
7: For the last step you need to update the Global.cs file to reference
your new Entity Model. You do this by scrolling down to the “public
static void RegisterRoutes(RouteCollection routes)” method, uncomment
out the line highlighted below and enter the name of your EntityModel.

How to build a Dynamic Data website in 60 seconds Global_thumb1
Change the line from this:












http://DefaultModel.RegisterContext(typeof(YourDataContextType), new ContextConfiguration() { ScaffoldAllTables = false });









How to build a Dynamic Data website in 60 seconds View



Pastie #1884184 linked directly from Pastie.

To this:












DefaultModel.RegisterContext(typeof(NorthwindEntities), new ContextConfiguration() { ScaffoldAllTables = true });









How to build a Dynamic Data website in 60 seconds View



Pastie #1884186 linked directly from Pastie.

And that’s it - all done! Your new website is now
ready for you to use. Just press F5, (you’ll be asked if you want to
enable debugging click Ok) and then your new web application will
appear.


How to build a Dynamic Data website in 60 seconds Debuggingnotenabled_thumb1

The home page displays all your tables, ready for you to interact with.

How to build a Dynamic Data website in 60 seconds Dynamicdatasitehome_thumb1

Click
on one of the tables, I’ve selected Categories, and the site will
display a page containig the data, links for insert, edit and deleting
the records. You’ll also get a link to “View” referenced data like in
Products in the example below.


How to build a Dynamic Data website in 60 seconds Dynamicdatasitecategories_thumb1

The “Insert” page for Categories:

How to build a Dynamic Data website in 60 seconds Dynamicdatasitecategoriesadd_thumb2

The “Edit” page for Categories:

How to build a Dynamic Data website in 60 seconds Dynamicdatasitecategoriesedit_thumb1

The “View” page for for our referenced Products table takes use to the Products page.

How to build a Dynamic Data website in 60 seconds Dynamicdatasitecategoriesproducts_th

If
you want to restrict which tables are displayed within the application
go back to the line you edited within the Global.asax.cs file and set
the ScaffoldAllTables = false;


Now create a new partial class
for each table you want to edit and add the attribute
[ScaffoldTable(True)] to the class, where the claasname matches the
database table name. For example, I’ve created one file called
ScaffoldTables.cs and added two partial classes for the Category and
Customer table in Northwind.


How to build a Dynamic Data website in 60 seconds Scaffoldtables_thumb2

Now when you run your web application you’ll only be shown the tables you explicitly added partial classes for.

How to build a Dynamic Data website in 60 seconds Scaffoldtablesweb_thumb5

I hope you find this quick introduction to Dynamic Data useful - happy coding! bounce bounce affraid affraid
الرجوع الى أعلى الصفحة اذهب الى الأسفل
https://alhemozero.yoo7.com
 
How to build a Dynamic Data website in 60 seconds
الرجوع الى أعلى الصفحة 
صفحة 1 من اصل 1
 مواضيع مماثلة
-
» How to build a basic website

صلاحيات هذا المنتدى:لاتستطيع الرد على المواضيع في هذا المنتدى
منتديات طلاب جامعة النيلين كلية علوم الحاسوب وتقانة المعلومات الحرية :: الفئة الأولى :: يرجى التسجيل فى الموقع قبل الدخول-
انتقل الى: