1 月 2
Console.WriteLine()	秀畫面並換行;
Console.Write()		秀畫面;

========================

Console.Write(string.Format("{0}*{1}={2:00}\t", j, i, j * i));
//類矩陣的方式,定義每個值的顯示方式


繼續瀏覽 »

12 月 27

12 月 13

>Entity Framework(often referred to as EF):
>a .NET Framework data-access technology to define and work with model classes.
>By default, the Entity Framework looks for a connection string named the same as the object context class (MovieDBContext for this project).

>Entity Framework is default to using LocalDB.

>LocalDB is a lightweight version of the SQL Server Express Database Engine
>LocalDB runs in a special execution mode of SQL Server Express that enables you to work with databases as .mdf files.
>Typically, LocalDB database files are kept in the App_Data folder of a web project.

>SQL Server Express is not recommended for use in production web applications.
>LocalDB in particular should not be used for production with a web application because it is not designed to work with IIS. However, a LocalDB database can be easily migrated to SQL Server or SQL Azure.

12 月 12

>Razor code註解符號 @*…….*@

>A controller class is where you write the code that handles the incoming browser requests, retrieves data from a database, and ultimately decides what type of response to send back to the browser.

>A view template should never perform business logic or interact with a database directly. Instead, a view template should work only with the data that’s provided to it by the controller. Maintaining this “separation of concerns” helps keep your code clean, testable and more maintainable.

>目前都是藉由Controller(藉由網址)傳遞資料給View(畫面呈現)

3 月 14

  一直以來都把網誌的圖片放在Dropbox,但最近收到Dropbox通知,3/15準備把Public的公開資料夾功能拿掉,雖然還是可以用”分享連結”的方式,讓圖片可以外連,但這個轉換工作太浩大,且難保未來不會再調整一次,因此乾脆評估把圖片移到較穩定的空間。

繼續瀏覽 »

2 月 20

  預設ul標籤會在行的上下方留白,若不要留白,可在css的ul標籤加入:

ul {
margin:0;
}

 

【相關連結】

2 月 7

方法一:

  • 在專案按右鍵選「Manage NuGet Packages for Solution…」

 

繼續瀏覽 »

1 月 20

====Memo====

1.至Studio Styles網站下載Monokai Bright – Sublime的scheme。

2.開Visual Studio,「Tools」-「Import and Export Settings」-「Import Selected Environment Settings」…。

 

【相關連結】

11 月 23

  前兩週公司網路架構大翻修,忙到不可開交,在修改print server的IP時,有兩顆很機歪,一開始先是不讓我改,後來改好後,變成只要閒置一段時間,他就會斷線,試了一整天,最後放棄,就抓了個小程式,放在Server讓程式每隔30秒就對print server來ping一下。

繼續瀏覽 »

12 月 13

 

  之前在找一些電腦單字發音時,無意間找到Forvo這個網站,Forvo上有各種語言單字的發音,這些聲音資訊都是由世界各地的網友提供,因此一個單字你可能會查到多個聲音檔,網站還會列出每個聲音檔是由何處提供。

繼續瀏覽 »