//Creating Fields to be added List<IField> fieldsToBeAdded = new...; addFields.Add(GISUtilities.GISUtilities.createNewField(tmp, esriFieldType.esriFieldTypeString, tmp, false, 100, dateString)); IFields fields = new FieldsClass(); IFieldsEdit fieldsEdit = (IFieldsEdit)fields; //Add all Fields to be Added foreach (IField addField in fieldsToBeAdded) { fieldsEdit.AddField(addField); } featureClass= workspace.CreateFeatureClass(featureString, fields, null, null, abc.FeatureType, abc.ShapeFieldName, null); //some Code which sets values explicity for all Fields except the field CreationDate (I debugged it, it is not set by mistake) //Add Features using IFeatureCursor insertCursorAuswahl.InsertFeature(featureBufferAuswahl); //After this statement I would expect the defaultValue Assigned, but my debug shows me still empty fields value = "" //StopEditing and so workspaceEdit.StopEditing(true); insertCursor.Flush(); return featureClass;
Solved! Go to Solution.