Learning Video on LINQ to SQL Class

Source Code using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ConsoleApplication9 { class Program { static void Main(string[] args) { StudentDemoDataContext context = new StudentDemoDataContext(); #region Reterive //Reteriving all the Records foreach (var r in context.Students) { Console.WriteLine(r.Name + r.Subject); } #endregion #region Insert Student std = new Student { RollNumber = “8”, NameContinueContinue reading “Learning Video on LINQ to SQL Class”

Video on consuming WCF Data Service (OData) in Windows 7 Phone Application

MainPage.Xaml <phoneNavigation:PhoneApplicationPage x:Class=”ConsumingODATA.MainPage” xmlns=”http://schemas.microsoft.com/winfx/2006/xaml/presentation&#8221; xmlns:x=”http://schemas.microsoft.com/winfx/2006/xaml&#8221; xmlns:phoneNavigation=”clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls.Navigation” xmlns:d=”http://schemas.microsoft.com/expression/blend/2008&#8243; xmlns:mc=”http://schemas.openxmlformats.org/markup-compatibility/2006&#8243; mc:Ignorable=”d” d:DesignWidth=”480″ d:DesignHeight=”800″ FontFamily=”{StaticResource PhoneFontFamilyNormal}” FontSize=”{StaticResource PhoneFontSizeNormal}” Foreground=”{StaticResource PhoneForegroundBrush}”> <Grid x:Name=”LayoutRoot” Background=”{StaticResource PhoneBackgroundBrush}”> <Grid.RowDefinitions> <RowDefinition Height=”Auto”/> <RowDefinition Height=”*”/> </Grid.RowDefinitions> <!–TitleGrid is the name of the application and page title–> <Grid x:Name=”TitleGrid” Grid.Row=”0″> <TextBlock Text=”Windows 7 Phone” x:Name=”textBlockPageTitle” Style=”{StaticResource PhoneTextPageTitle1Style}”/> <TextBlock Text=”ODATA” x:Name=”textBlockListTitle” Style=”{StaticResource PhoneTextPageTitle2Style}”/> </Grid> <!–ContentGrid isContinueContinue reading “Video on consuming WCF Data Service (OData) in Windows 7 Phone Application”

Video on Picture Gallery for Windows 7 Phone using WCF REST Service

IService1.cs 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Runtime.Serialization; 5 using System.ServiceModel; 6 using System.ServiceModel.Web; 7 using System.Text; 8 using System.IO; 9 10 namespace PictureService2 11 { 12 13 [ServiceContract] 14 public interface IService1 15 { 16 [OperationContract] 17 [WebGet(UriTemplate=”/GetFiles”)] 18 List<string> GetFilesName(); 19 20 21 [OperationContract] 22 [WebGet(UriTemplate=”/GetImage/{imageName}”)] 23 StreamContinueContinue reading “Video on Picture Gallery for Windows 7 Phone using WCF REST Service”