public void CreateRoutes(SchemaBuilder schemaBuilder)
{
FieldDescription routeIdDescription = FieldDescription.CreateIntegerField("RouteID");
FieldDescription routeNameDescription = FieldDescription.CreateStringField("RouteName", 100);
ShapeDescription shapeDescription = new ShapeDescription(GeometryType.Polyline, SpatialReferences.WGS84) { HasM = true, HasZ = false };
FeatureClassDescription routeFeatureClassDescription = new FeatureClassDescription("Routes", new List<FieldDescription>() { routeIdDescription, routeNameDescription }, shapeDescription);
//Create an M-enabled poly-line feature class
schemaBuilder.Create(routeFeatureClassDescription);
schemaBuilder.Build();
}