18
M.Kemal Demir & Yunus Özen M.Kemal Demir & Yunus Özen

C#Turk.net Istanbul Universitesi ASP.NET MVC Semineri

Embed Size (px)

Citation preview

Page 1: C#Turk.net Istanbul Universitesi ASP.NET MVC Semineri

M.Kemal Demir & Yunus ÖzenM.Kemal Demir & Yunus Özen

Page 2: C#Turk.net Istanbul Universitesi ASP.NET MVC Semineri

Başlangıç RehberiBaşlangıç RehberiMakalelerMakalelerGörsel DerslerGörsel DerslerCommunityCommunityWeb 2.0Web 2.0

Page 3: C#Turk.net Istanbul Universitesi ASP.NET MVC Semineri
Page 4: C#Turk.net Istanbul Universitesi ASP.NET MVC Semineri

ASP.NETASP.NET için yeni bir alternatif için yeni bir alternatifKolay Kolay TDD TDD Daha fazla Daha fazla <html/><html/> hakimiyeti hakimiyetiDaha fazla URL hakimiyetiDaha fazla URL hakimiyetiHerkes için değil Herkes için değil

Page 5: C#Turk.net Istanbul Universitesi ASP.NET MVC Semineri

Web Forms 4.0Web Forms 4.0 değil değilAlternatifler varAlternatifler var. .

Basit, daha özgürBasit, daha özgürAyakkabı sıkıyorsa sandalet giyAyakkabı sıkıyorsa sandalet giy

FundamentalFundamentalSystem.Web System.Web ‘in bir parçası‘in bir parçası.. System.Web.MVC System.Web.MVC

Diğerleri ile iyi geçinirDiğerleri ile iyi geçinirModels Models için için Nhibernate, Views Nhibernate, Views için için Brail Brail vbvb

KKISSISS veve DRY DRY

Page 6: C#Turk.net Istanbul Universitesi ASP.NET MVC Semineri

BrowserBrowserWeb Web

ServerServer

http://myserver.com/Products/

ProductsControllerProductsController(Controller)(Controller)

ProductProduct(Model)(Model) SQLSQL

Edit.aspxEdit.aspx(View)(View)

http://myserver.com/Products/Edit/5

List.aspxList.aspx(View)(View)ViewData

Page 7: C#Turk.net Istanbul Universitesi ASP.NET MVC Semineri
Page 8: C#Turk.net Istanbul Universitesi ASP.NET MVC Semineri

Global.asaxGlobal.asax içinde içinde RegisterRoutes() RegisterRoutes() ile ile ayarlanırayarlanır

Esnek yönlendirme kurallarıEsnek yönlendirme kurallarıDefault parametDefault parametrelerrelerKısıtlamalarKısıtlamalarİsimlendirilmiş route larİsimlendirilmiş route larWildcard Wildcard kullanımıkullanımı

Page 9: C#Turk.net Istanbul Universitesi ASP.NET MVC Semineri

Esnek ve tak-çıkar yapıEsnek ve tak-çıkar yapıSistemin bileşenleri değiştirilebilirSistemin bileşenleri değiştirilebilir

Temiz Temiz URL URL ve ve HTML HTMLSEO SEO özellikleriözellikleri

ASP.NETASP.NET ile entegrasyon ile entegrasyonBütün provider lar çalışıyorBütün provider lar çalışıyorMembership, Session, Caching, etc.Membership, Session, Caching, etc.VS2008 Designer SurfaceVS2008 Designer Surface

Page 10: C#Turk.net Istanbul Universitesi ASP.NET MVC Semineri
Page 11: C#Turk.net Istanbul Universitesi ASP.NET MVC Semineri

• Browser /Products/ isteğini gönderir• Route belirlenir• Controller aktive edilir•Action Method seçilip tetiklenir• Controller gerekli işleri yapar• ViewData ile veri enjekte edilir•View render edilir

Page 12: C#Turk.net Istanbul Universitesi ASP.NET MVC Semineri
Page 13: C#Turk.net Istanbul Universitesi ASP.NET MVC Semineri

/Products/Edit/5

ProductsControllerProductsController(Controller)(Controller)

ProductProduct(Model)(Model) SQLSQL

/Products/Update/5

URL:

Page 14: C#Turk.net Istanbul Universitesi ASP.NET MVC Semineri
Page 15: C#Turk.net Istanbul Universitesi ASP.NET MVC Semineri

• You can futz at each step in the process

Page 16: C#Turk.net Istanbul Universitesi ASP.NET MVC Semineri

ViewsViewsControllersControllersModelsModelsRoutesRoutes......Hepsi tak-çıkar yapıdaHepsi tak-çıkar yapıda

Page 17: C#Turk.net Istanbul Universitesi ASP.NET MVC Semineri

ASP.NET için yeni bir alternatifASP.NET için yeni bir alternatifDaha fazla Daha fazla <html/><html/> ve URL hakimiyeti ve URL hakimiyetiKolay TDD yapılabilirKolay TDD yapılabilirHerkes için değilHerkes için değilMuhtemel release tarihi: Kasım - Aralık. Muhtemel release tarihi: Kasım - Aralık.

Page 18: C#Turk.net Istanbul Universitesi ASP.NET MVC Semineri

© 2008 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries.The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market

conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

M.Kemal Demir Yunus ÖzenM.Kemal Demir Yunus Özenkemal.csharpturk.net yunus.csharpturk.netkemal.csharpturk.net yunus.csharpturk.net