Beispiel #1
0
 public String SsdlPropType(TypeSpecification ts)
 {
     return ts.TypeName;
 }
Beispiel #2
0
 public String CsdlPropCollType(TypeSpecification ts)
 {
     return String.Format("Collection({0})", CsdlPropType(ts));
 }
Beispiel #3
0
 public String CsdlPropType(TypeSpecification ts)
 {
     foreach (var storeType in providerManifest.GetStoreTypes()) {
         if (storeType.Name == ts.TypeName) {
             if (storeType.BuiltInTypeKind == BuiltInTypeKind.PrimitiveType) {
                 return storeType.PrimitiveTypeKind.ToString();
             }
         }
     }
     // Unknown type
     return null;
 }
Beispiel #4
0
 public static Column CreateColumn(string id, string name, int ordinal, bool isNullable, TypeSpecification columnType, bool isIdentity, bool isStoreGenerated)
 {
     Column column = new Column();
     column.Id = id;
     column.Name = name;
     column.Ordinal = ordinal;
     column.IsNullable = isNullable;
     column.ColumnType = StructuralObject.VerifyComplexObjectIsNotNull(columnType, "ColumnType");
     column.IsIdentity = isIdentity;
     column.IsStoreGenerated = isStoreGenerated;
     return column;
 }
Beispiel #5
0
partial         void OnColumnTypeChanging(TypeSpecification value);
Beispiel #6
0
 public static TypeSpecification CreateTypeSpecification(string typeName, Collation collation, CharacterSet characterSet, bool isMultiSet)
 {
     TypeSpecification typeSpecification = new TypeSpecification();
     typeSpecification.TypeName = typeName;
     typeSpecification.Collation = StructuralObject.VerifyComplexObjectIsNotNull(collation, "Collation");
     typeSpecification.CharacterSet = StructuralObject.VerifyComplexObjectIsNotNull(characterSet, "CharacterSet");
     typeSpecification.IsMultiSet = isMultiSet;
     return typeSpecification;
 }
Beispiel #7
0
partial         void OnReturnTypeChanging(TypeSpecification value);
Beispiel #8
0
 public static ScalarFunction CreateScalarFunction(string id, string name, TypeSpecification returnType)
 {
     ScalarFunction scalarFunction = new ScalarFunction();
     scalarFunction.Id = id;
     scalarFunction.Name = name;
     scalarFunction.ReturnType = StructuralObject.VerifyComplexObjectIsNotNull(returnType, "ReturnType");
     return scalarFunction;
 }
Beispiel #9
0
partial         void OnParameterTypeChanging(TypeSpecification value);
Beispiel #10
0
 public static Parameter CreateParameter(string id, string name, int ordinal, TypeSpecification parameterType)
 {
     Parameter parameter = new Parameter();
     parameter.Id = id;
     parameter.Name = name;
     parameter.Ordinal = ordinal;
     parameter.ParameterType = StructuralObject.VerifyComplexObjectIsNotNull(parameterType, "ParameterType");
     return parameter;
 }