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上有各種語言單字的發音,這些聲音資訊都是由世界各地的網友提供,因此一個單字你可能會查到多個聲音檔,網站還會列出每個聲音檔是由何處提供。

繼續瀏覽 »

11 月 18

  呼~成功讓Ubuntu跑IE了,感覺真是奇妙,目前正在嘗試在Ubuntu運行遊戲,哈哈~好過癮哪!

 


【延伸閱讀】
役言堂:安裝Internet explorer 6

10 月 28

  就在昨天凌晨,將Ubuntu 7.10 灌進電腦裡了,一切都還算是順利,比過去的經驗好很多,甚至會讓我直接以Windows的角度去感受這個作業系統。目前的感想是,要取代windows,老實說,我認為還有一段路要走,但是,路的盡頭已不再是那麼遙遠!

  中午跟朋友去吃飯時,東扯西聊聊到ubuntu,原來朋友也有在玩,互相交流了一點想法,兩個人都是新手,瞭解的都不多,但對這個套件都覺得挺有意思的。

  目前我主要是在設置一些常用的軟體,打算先把基本的環境搞定,邊弄邊摸索。早上都在搞輸入法,就是無法調校到習慣的方式,不過剛剛換成另一套後,感覺還挺不賴,隨即又順利裝上音樂播放程式,整個成就感都出來了,感覺真棒,哈!

  ubuntu還是會需要用到一些指令,因此我會把用過的一些指令記錄下來(順道一提,ubuntu內建的筆記功能還挺便利的呢!),而除了記事本外,我還想記錄一份在網誌上,除了雙重備份的功用外,也許還可以幫到其他網友,一舉數得,何樂不為,不過因為屬性較偏記事筆記,因此會丟到「爪哇島」那板去,怕丟到網誌這板會有點雜。

  這次應該是第四次接觸Linux了,前面兩次都鎩羽而歸,第三次的Debian在文字模式摸了兩天後,終於成功進入x-window,結果卻反而不知道要怎麼使用,也因為進入x-window的目標已達成,動力頓時大減,後來就沒繼續玩了,希望這次能成功的藉由ubuntu引領我進入Linux的世界。


【相關連結】