把手上的工作做好,是邁向成功最好的一步。
- Mar 23 Wed 2016 13:21
-
[English] Making a success of the job at hand is the best step toward the kind you want.
Making a success of the job at hand is the best step toward the kind you want.
把手上的工作做好,是邁向成功最好的一步。
把手上的工作做好,是邁向成功最好的一步。
- Mar 22 Tue 2016 13:53
-
[綸語錄] 對於想做的事,不要帶著懷疑的態度而猶豫不決,做就對了,失敗比什麼都不做來的好。
- Mar 22 Tue 2016 12:16
-
[English] I am a slow walker, but I never walk backwards.
- Mar 21 Mon 2016 10:58
-
[English] Be confident with yourself and stop worrying what other people think. Do what's best for your future happiness.
Be confident with yourself and stop worrying what other people think. Do what's best for your future happiness.
對自己要自信,別再管其他人怎麼想了,為了未來幸福全力以赴吧。
對自己要自信,別再管其他人怎麼想了,為了未來幸福全力以赴吧。
- Mar 20 Sun 2016 10:54
-
[English] To be a person who knows how to be silent and always keep aspiring.
- Mar 19 Sat 2016 10:48
-
[English] Whenever you feel like criticizing any one, just remember that all the people in this world haven't had the advantages that you've had.
Whenever you feel like criticizing any one, just remember that all the people in this world haven't had the advantages that you've had.
每當你覺得想要批評甚麼人的時候,妳切要記著,這個世界上的人並非都具備妳稟有的條件。
每當你覺得想要批評甚麼人的時候,妳切要記著,這個世界上的人並非都具備妳稟有的條件。
- Mar 18 Fri 2016 12:54
-
[English] Life is a little bit messy. We all make mistakes. No matter what type of animal you are, change starts with you.
Life is a little bit messy. We all make mistakes. No matter what type of animal you are, change starts with you.
生活總會有點不順遂,我們都會犯錯。天性如何並不重要,重要的是妳要開始改變。
生活總會有點不順遂,我們都會犯錯。天性如何並不重要,重要的是妳要開始改變。
- Mar 17 Thu 2016 12:54
-
[English] Never regret anything because at one time it was exactly what you wanted.
Never regret anything because at one time it was exactly what you wanted.
不要後悔做任何事情,因為曾經有個時候,那正是妳想要的。
不要後悔做任何事情,因為曾經有個時候,那正是妳想要的。
- Mar 16 Wed 2016 12:54
-
[English] I always tried to turn every disaster into an opportunity. -- John Davison Rockefeller
I always tried to turn every disaster into an opportunity. -- John Davison Rockefeller
我總是想辦法把每一個災難都變成機會。-- 洛克菲勒
我總是想辦法把每一個災難都變成機會。-- 洛克菲勒
- Mar 15 Tue 2016 17:36
-
[C#][.NET] DBNull 和三元運算
當DB的欄位值設定是允許Null
該欄位的值,是Null 或是空值("")不一樣。
所以取值時,要多一層判斷。(雖然在UI看起來都一樣沒有東西)
Model.txtCustomer = (object)dr["txtCustomer"] is DBNull ? null : dr["txtCustomer"].ToString();
=>DataReader要先轉成Object,並判斷 is DBNull,是的話就給Null值,不是的話就給DB撈出來的值。
該欄位的值,是Null 或是空值("")不一樣。
所以取值時,要多一層判斷。(雖然在UI看起來都一樣沒有東西)
Model.txtCustomer = (object)dr["txtCustomer"] is DBNull ? null : dr["txtCustomer"].ToString();
=>DataReader要先轉成Object,並判斷 is DBNull,是的話就給Null值,不是的話就給DB撈出來的值。
- Mar 15 Tue 2016 12:54
-
[English] I can accept defeat but could not accept to give up.
- Mar 14 Mon 2016 13:27
-
[English] No matter the ending is perfect or not, you cannot disappear from my world.
No matter the ending is perfect or not, you cannot disappear from my world.
我的世界不允許妳的消失,不管結局是否完美。
我的世界不允許妳的消失,不管結局是否完美。