Dec 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 lets you work with databases as .mdf files.
>Typically,, LocalDB database files are stored in the App_Data folder of a web project.

>SQL Server Express is not recommended for use in production web applications.
>LocalDB specifically should not be used in 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.

Dec 12

>Razor code comment symbol @*…….*@

>A controller class is where you write the code that handles 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.

>Currently, it’s all done through the Controller(through the URL)傳遞資料給View(畫面呈現)

Mar 14

  一直以來都把網誌的圖片放在Dropbox但最近收到Dropbox通知,3/15準備把Public的公開資料夾功能拿掉雖然還是可以用”Sharing links”as a method,allows images to be externally linked,but this conversion task is too massive,and it's hard to ensure it won't need to be adjusted again in the future,so it's better to just consider moving the images to a more stable location。

繼續瀏覽 »

Feb 20

By default, the ul tag leaves blank space above and below the line,If you don't want the blank space,You can add to the ul tag in CSS:

ul {
margin:0;
}

 

[Related Links]

Feb 7

方法一:

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

 

繼續瀏覽 »

Jan 20

====Memo====

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

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

 

[Related Links]

Nov 23

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

繼續瀏覽 »

Dec 13

 

  之前在找一些電腦單字發音時,無意間找到Forvo這個網站,Forvo has pronunciations of words in various languages,These audio clips are provided by users from all over the world,So for a single word, you might find multiple audio files,The website also lists the source of each audio file。

繼續瀏覽 »

Nov 18

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

 


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

Oct 28

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

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

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

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

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


[Related Links]