我有一個枚舉類型像下面在實體框架查詢
[Flags]
public enum WeekDays
{
Monday = 1,
Tuesday = 2,
Wednesday = 4,
Thursday = 8,
Friday = 16,
Saturday = 32,
Sunday = 64,
}
WeekDays dw = WeekDays.Friday | WeekDays.Monday | WeekDays.Saturday;
int dwInt = (int)dw;
var list = query.Where(f => f.FromDateTime.DayOfWeek == dwInt "??????????? what can i do there????").ToList();
您是否知道您沒有問過任何問題? – usr 2012-04-25 19:34:18
我寫過???????????我能在那裏做什麼? – tobias 2012-04-25 19:52:14
@tobias不要把你的問題放在代碼本身,特別是當我們需要滾動以找到它時。 – Sampson 2012-04-25 19:56:27