Here are the examples of the csharp api class System.Data.Common.CommandTrees.ExpressionBuilder.Internal.ArgumentValidation.RequireCompatibleType(System.Data.Common.CommandTrees.DbExpression, System.Data.Metadata.Edm.TypeUsage, string) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
2 Examples
0
1. Example
View licenseinternal static TypeUsage ValidateProperty(DbExpression instance, EdmMember property, string propertyArgumentName) { // // Validate the member // CheckMember(property, propertyArgumentName); // // Validate the instance // if (null == instance) { throw EntityUtil.Argument(System.Data.Entity.Strings.Cqt_Property_InstanceRequiredForInstance, "instance"); } TypeUsage expectedInstanceType = TypeUsage.Create(property.DeclaringType); RequireCompatibleType(instance, expectedInstanceType, "instance"); Debug.Assert(null != Helper.GetModelTypeUsage(property), "EdmMember metadata has a TypeUsage of null"); return Helper.GetModelTypeUsage(property); }
0
2. Example
View licenseinternal static TypeUsage ValidateRefFromKey(EntitySet entitySet, DbExpression keyValues, EntityType/n ..... /n //View Source file for more details /n }