5. @GosiaBorzecka
Microsoft spent many years since 1996 in building .NET Framework and then
.NET Framework evolved
It was July 2000 when Bill Gates appeared in a PDC (Professional Developers
Conference) Orlando Florida, where he revealed the detalis of Microsoft’s new
platform called NGWS (Next Generation Windows Service) later known as .NET
2002!
6. @GosiaBorzecka
Operating System
The OS manages the resources, the processes and
the users of the machine
Provides to the applications some services (threads,
I/O, GDI+, DirectX, COM, COM+, MSMQ, IIS, WMI, …)
14. @GosiaBorzecka
Visual Studio 2013
ASP.NET
Windows
Desktop Apps
ADO
.NET
ADO.NET
EF
WCF
ASP.NET
WEB API
Windows
Store Apps
WPF
Silver
Light
Paraller
Extension
SignalR WFLINQ
Base
Class
Library
Languages
(C#,
VB.NET..)
Dynamic
Language
Runtime
Managed
Extensibility
Framework
Portable
Class
Library
Win RT
Operating System
Common Language Runtime
18. ASP.NET Web
Pages
ASP.NET MVC
ASP.NET WEB
API
ASP.NET
SignalR
Entity
Framework
.NET Compiler
Platform
(“Roslyn”)
.NET Micro
Framework
.NET MEF .NET Rx .NET WebClient
.NET Map
Reduce API for
Hadoop
.NET API for
Hadoop
Windows Azure
.NET SDK
Windows
Phone Toolkit
Xamarin
System
Drawing
Xamarin
Mobile
Xamarin
Mailkit
Xamarin Auth
Xamarin
Mimekit
Xamarin
couchbase-
lite-net
Web Protection
Library
OWIN
Authentication
Middleware
LINQ to Hive
@GosiaBorzecka
25. MVC (Model – View – Controller)
Based on file and folder naming conventions
Easy to test, easy to TDD (Test Driven
Development)
Based on the IoC (Inversion of Control)
@GosiaBorzecka
30. @GosiaBorzecka
IIS Express
◦ It doesn't run as a service or require administrator
user rights to perform most tasks.
◦ IIS Express works well with ASP.NET and PHP
applications.
◦ Multiple users of IIS Express can work
independently on the same computer.
32. BundleConfig.cs
New feature in ASP.NET 4.5
Easy to combine or bundle multiple files into
a single file
Code optimalization (scripts, css)
@GosiaBorzecka
45. Read, write or compute a value of a private field
Properties enable a class to expose a public way of getting and setting
values, while hiding
implementation or verification code.
A get property accessor is used to return the property value, and a set
accessor is used to assign a new
value. These accessors can have different access levels. For more
information, see Restricting Accessor
Accessibility ﴾C# Programming Guide﴿.
The value keyword is used to define the value being assigned by the set
accessor.
Properties that do not implement a set accessor are read only.
For simple properties that require no custom accessor code, consider
the option of using autoimplemented
properties. For more information, see Auto‐Implemented Properties ﴾C#
Programming
Guide﴿.
@GosiaBorzecka
47. DbContext (represents contetnt of Web site)
DbSet (represents the collection of all entities
in the context, or that can be queried from
the database, of a given type)
@GosiaBorzecka
48. No boxing – unboxing
The most common use of generics is to
create collection classes
Generic intefaces, classes, methods, events,
delegates
◦ List<T>
◦ DbSet<TodoList>
@GosiaBorzecka
49. LINQ querying SQL (MS SQL Server
supported).
LINQ querying Datasets (Querying is possible
on Datasets and DataTables)
LINQ querying ORM Solution
LINQ querying Objects (In-memory data may
be queried)
LINQ querying XML (Querying is possible on
XML data source
LINQ supports querying to those objects that
implement the IEnumerable Interface.
@GosiaBorzecka
51. Details:
◦ Get task by id
Edit:
◦ Edit by id
◦ Post by collection
Delete:
◦ Delete by id
@GosiaBorzecka
TodoList todolist = db.TodoList.Find(id);