46 references to Primitive
System.Data (46)
fx\src\data\System\Data\CodeGen\datacache.cs (46)
301onRowEvent.Statements.Add(If(IdNotEQ(Event(rowClassName + eventName), Primitive(null)), 394countProp.CustomAttributes.Add(AttributeDecl("System.ComponentModel.Browsable", Primitive(false))); 470newArray.Initializers.Add(Primitive(null)); 476newArray.Initializers.Add(Indexer(Argument(argumentName), Primitive(relation.ParentColumnsReference[0].Ordinal))); 580Primitive(null), 611Primitive(uc.IsPrimaryKey) 628tableInitClass.Statements.Add(Assign(Property(codeField, "AutoIncrement"), Primitive(true))); 632tableInitClass.Statements.Add(Assign(Property(codeField, "AutoIncrementSeed"), Primitive(column.AutoIncrementSeed))); 636tableInitClass.Statements.Add(Assign(Property(codeField, "AutoIncrementStep"), Primitive(column.AutoIncrementStep))); 640tableInitClass.Statements.Add(Assign(Property(codeField, "AllowDBNull"), Primitive(false))); 644tableInitClass.Statements.Add(Assign(Property(codeField, "ReadOnly"), Primitive(true))); 648tableInitClass.Statements.Add(Assign(Property(codeField, "Unique"), Primitive(true))); 665tableInitClass.Statements.Add(Assign(Property(codeField, "DefaultValue"), Primitive(column.DefaultValue))); 669tableInitClass.Statements.Add(Assign(Property(codeField, "MaxLength"), Primitive(column.MaxLength))); 675tableInitClass.Statements.Add(Assign(Property(This(), "CaseSensitive"), Primitive(table.CaseSensitive))); 692tableInitClass.Statements.Add(Assign(Property(This(), "MinimumCapacity"), Primitive(table.MinimumCapacity))); 825nullValueExpr = Primitive(null); 857nullValueExpr = Primitive(nullValueObj); 862nullValueFieldInit = MethodCall(TypeExpr(typeof(System.Convert)), "FromBase64String", Primitive(nullValue)); 864nullValueFieldInit = MethodCall(TypeExpr(col.DataType), "Parse", Primitive(nullValueObj.ToString())); 874nullValueFieldInit = New(col.DataType, new CodeExpression[] {Primitive(nullValue)}); 1017dataSetClass.CustomAttributes.Add(AttributeDecl("System.ComponentModel.ToolboxItem", Primitive(true))); 1018dataSetClass.CustomAttributes.Add(AttributeDecl(typeof(XmlSchemaProviderAttribute).FullName, Primitive("GetTypedDataSetSchema"))); 1019dataSetClass.CustomAttributes.Add(AttributeDecl(typeof(XmlRootAttribute).FullName, Primitive(stDataSetClassName))); 1050If(EQ(MethodCall(This(), "IsBinarySerialized", new CodeExpression[] {Argument("info"), Argument("context")}), Primitive(true)) , 1052Stm(MethodCall(This(),"InitVars", Primitive(false))), 1071If(IdNotEQ(Indexer(Property(Variable("ds"),"Tables"),Str(dataSet.Tables[i].TableName)),Primitive(null)), 1082schemaBody.Add(Stm(MethodCall(This(),"Merge",new CodeExpression[] {Variable("ds"),Primitive(false),Field(TypeExpr(typeof(MissingSchemaAction)),"Add")}))); 1087If(IdNotEQ(Variable("strSchema"),Primitive(null)), 1119initDataSetVarsMethod.Statements.Add(MethodCall(This(), "InitVars", new CodeExpression [] {Primitive(true)})); 1139initClassMethod.Statements.Add(Assign(Property(This(), "CaseSensitive"), Primitive(dataSet.CaseSensitive))); 1141initClassMethod.Statements.Add(Assign(Property(This(), "EnforceConstraints"), Primitive(dataSet.EnforceConstraints))); 1157EQ(Variable("initTable"), Primitive(true)), 1159If(IdNotEQ(fieldTable,Primitive(null)), 1170shouldSerializeTables.Statements.Add(Return(Primitive(false))); 1178shouldSerializeRelations.Statements.Add(Return(Primitive(false))); 1230If(IdNotEQ(Indexer(Property(Variable("ds"),"Tables"),Str(dataSet.Tables[i].TableName)),Primitive(null)), 1241readXmlSerializable.Statements.Add(MethodCall(This(),"Merge",new CodeExpression[] {Variable("ds"),Primitive(false),Field(TypeExpr(typeof(MissingSchemaAction)),"Add")})); 1255getSchemaSerializable.Statements.Add(MethodCall(This(), "WriteXmlSchema", New(typeof(System.Xml.XmlTextWriter),new CodeExpression[] {Argument("stream"),Primitive(null)}))); 1256getSchemaSerializable.Statements.Add(Assign(Property(Argument("stream"),"Position"),Primitive(0))); 1257getSchemaSerializable.Statements.Add(Return(MethodCall(TypeExpr("System.Xml.Schema.XmlSchema"),"Read",new CodeExpression[] {New(typeof(System.Xml.XmlTextReader),new CodeExpression[] {Argument("stream")}), Primitive(null)}))); 1339New(typeof(DataRelation), new CodeExpression[] {Str(relation.RelationName), parentColCreate, childColCreate,Primitive(false)}) 1344initClassMethod.Statements.Add(Assign(Property(Field(This(), RelationFieldName(relation)), "Nested"), Primitive(true))); 1361Primitive(false) 1371shouldSerializeTableProperty.Statements.Add(Return(Primitive(false))); 1452private static CodeExpression Str(string str) { return Primitive(str);}