Here are the examples of the csharp api class System.Data.Common.CommandTrees.Internal.ExpressionDumper.Dump(System.Data.Metadata.Edm.TypeUsage, string) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
8 Examples
0
1. Example
View licensepublic override void Visit(DbIsOfExpression e) { BeginUnary(e); Dump(e.OfType, "OfType") ; End(e); }
0
2. Example
View licensepublic override void Visit(DbOfTypeExpression e) { BeginUnary(e); Dump(e.OfType, "OfType"); End(e); }
0
3. Example
View licenseinternal void Dump(IEnumerable<FunctionParameter> paramList) { Begin("Parameters"); foreach (FunctionParameter param in paramList) { Begin("Parameter", "Name", param.Name); Dump(param.TypeUsage, "ParameterType"); End("Parameter"); } End("Parameters"); }
0
4. Example
View licenseinternal void Dump(EdmProperty prop) { Begin("Property", "Name", prop.Name, "Nullable", prop.Nullable); Dump(prop.DeclaringType, "DeclaringType"); Dump(prop.TypeUsage, "PropertyType"); End("Property"); }
0
5. Example
View licenseprivate void Begin(DbExpression expr, Dictionary<string, object> attrs) { attrs.Add("DbExpressionKind", Enum.GetName(typeof(DbExpressionKind), expr.ExpressionKind)); Begin(expr.GetType().Name, attrs); Dump(expr.ResultType, "ResultType"); }
0
6. Example
View licenseinternal void Dump(EdmFunction function) { Begin("Function", "Name", function.Name, "Namespace", function.NamespaceName); Dump(function.Parameters); if (function.ReturnParameters.Count == 1) { Dump(function.ReturnParameters[0].TypeUsage, "ReturnType"); } else { Begin("ReturnTypes"); foreach (var returnParameter in function.ReturnParameters) { Dump(returnParameter.TypeUsage, returnParameter.Name); } End("ReturnTypes"); } End("Function"); }
0
7. Example
View licenseinternal void Dump(RelationshipEndMember end, string name) { Begin(name); Begin( "RelationshipEndMember", "Name", end.Name, //"IsParent", end.IsParent, "RelationshipMultiplicity", Enum.GetName(typeof(RelationshipMultiplicity), end.RelationshipMultiplicity) ); Dump(end.DeclaringType, "DeclaringRelation"); Dump(end.TypeUsage, "EndType"); End("RelationshipEndMember"); End(name); }
0
8. Example
View licenseinternal void Dump(NavigationProperty navProp, string name) { Begin(name); Begin( "NavigationProperty", "Name", navProp.Name, //"IsParent", end.IsParent, "RelationshipTypeName", navProp.RelationshipType.FullName, "ToEndMemberName", navProp.ToEndMember.Name ); Dump(navProp.DeclaringType, "DeclaringType"); Dump(navProp.TypeUsage, "PropertyType"); End("NavigationProperty"); End(name); }