优化WindowsBase和EF