Reference: https://www.visualstudio.com/xamarin/ Xamarin is a Microsoft-owned San Francisco, California-based software company founded in May 2011 by the engineers that created Mono, Mono for Android and MonoTouch, which are cross-platform implementations of the Common Language Infrastructure (CLI) and Common Language Specifications (often called Microsoft .NET). With a C#-shared codebase, developers can use Xamarin tools to write native Android, iOS, …
Category: C#
A Small Looking Up Program
I make a small looking up program these day for a test. We input a source word, then the program can look up the words that have four consecutive letters (or more) in common with the “source” word. For example, the word MATTER has the four letters in a row “ATTE” in common with ATTEND. So we input ATTEND, …
Deployment Issues on Plesk Hosting
After finishing a project locally, we need to deploy it on the sever. I am using Plesk Hosting. There are still some issues about deployment: Firstly, after uploading the files onto the server, we need to create a database and transfer the data from local one to the remote one. Secondly, we need to change a …
ASP.Net MVC – How to pass data between view and controller
Reference: http://www.cnblogs.com/hangwei/p/4466856.html In this article we will discuss the way to pass data between view and controller. There will be three parts: From Controller to View From View to Controller Between Actions In ASP.NET WebForms, we use the following methods to pass data between view and controller Query String (URL) Session Cookie Application Server.Transfer Here we will talk …
A Practice for LINQ and ASP.NET – IV
Task 3: Add CRUD (Create, Read, Update, Delete) and details for each page. Create a subpage inside student page for adding and removing enrolments. Add any necessary validations. Note: Be careful when you delete items. I use the scaffolding feature of VS to create the Add/Edit page. In the Add/Edit class page, I need two …
A Practice for LINQ and ASP.NET – III
From the last post we discussed how to get the number of classes belong to each subject. Now we should focus on getting the number of teachers belong to each subject. It’s quite similar to the previous one. //Get number of teachers belong each subject var staffCount = (from s in db.Subjects join c in db.Classes …
A Practice for LINQ and ASP.NET – II
In the last post we discussed Task Two of the exercise. There is another way that we can achieve the same result. Task 2: Subject page: show number of staffs, classes and enrollments belong to each subject Teacher page: show number of classes and subjects belong to each teacher Student page: show number of enrollments each student has enrolled …
A Practice for LINQ and ASP.NET – I
Auckland High School is a basic exercise for understanding more on LINQ and ASP.NET MVC. You can visit the site from http://www.nickyli.net/. The source code can be downloaded from GitHub. The contents of the exercise (italic) are from MVP Studio. Scenario You are going to design a database and a website based on that database for an …
Entity Framework Code-first vs Model/Database-first (continued)
In the last post we discussed the four modes of entity framework: Database First Model First Code First from Empty Code First from Database In this post I want to list the main features of the modes above for comparison. The following contents refer to StackOverFlow. Database First Very popular if you have DB designed by …
Entity Framework Code-first vs Model/Database-first
Entity Framework is a magic ORM tool that connects the Database and POCO classes together. In an web application based on ASP.NET framework, we use Entity Framework almost everywhere when doing the CRUD operation on a database. When we are trying to add an ADO.NET Entity Data Model, the first thing to do is to decide which …