void DynamicWcfInstantFeedbackSourceGetSource(object sender, GetSourceEventArgs e) { var entityType = DynamicDataServiceContext.GetTypeDefinition(_entityName); var primaryFieldName = entityType.Key().First().Name; e.Query = _context.CreateObjectQuery(_entityName, null, null); e.KeyExpression = primaryFieldName; }