8,735
社区成员
发帖
与我相关
我的任务
分享
LoadOperation<?XML:NAMESPACE PREFIX = [default] http://schemas.microsoft.com/winfx/2006/xaml/presentation NS = "http://schemas.microsoft.com/winfx/2006/xaml/presentation" /><customer> loadOp = this._customerContext.Load(this._customerContext.GetCustomersQuery());
CustomerGrid.ItemsSource = loadOp.Entities;
Partial Public Class MainPage
Inherits UserControl
Private _customerContext As CustomerDomainContext = New CustomerDomainContext()
Public Sub New()
InitializeComponent()
' CustomerGrid.ItemsSource = _customerContext.Load(_customerContext.GetCustomerQuery()).Entities
CustomerGrid.ItemsSource = Me._customerContext.Load(_customerContext.GetCustomerQuery()).Entities
End Sub
End Class
public partial class MainPage : UserControl
{
private CustomerDomainContext _customerContext = new CustomerDomainContext();
public MainPage()
{
InitializeComponent();
//LoadOperation<?XML:NAMESPACE PREFIX = [default] http://schemas.microsoft.com/winfx/2006/xaml/presentation NS = "http://schemas.microsoft.com/winfx/2006/xaml/presentation" /><customer> loadOp = this._customerContext.Load(this._customerContext.GetCustomersQuery());
CustomerGrid.ItemsSource = this._customerContext.Load(_customerContext.GetCustomerQuery()).Entities;
}
}