private static DataPropertyDefinition ConvertDataProperty(MgDataPropertyDefinition dataProp) { var dp = new DataPropertyDefinition(dataProp.Name, dataProp.Description); dp.DataType = (DataPropertyType)dataProp.DataType; dp.DefaultValue = dataProp.DefaultValue; dp.Description = dataProp.Description; dp.IsAutoGenerated = dataProp.IsAutoGenerated(); dp.IsNullable = dataProp.Nullable; dp.IsReadOnly = dataProp.ReadOnly; dp.Length = dataProp.Length; dp.Precision = dataProp.Precision; dp.Scale = dataProp.Scale; return(dp); }
private static DataPropertyDefinition ConvertDataProperty(MgDataPropertyDefinition dataProp) { var dp = new DataPropertyDefinition(dataProp.Name, dataProp.Description); dp.DataType = (DataPropertyType)dataProp.DataType; dp.DefaultValue = dataProp.DefaultValue; dp.Description = dataProp.Description; dp.IsAutoGenerated = dataProp.IsAutoGenerated(); dp.IsNullable = dataProp.Nullable; dp.IsReadOnly = dataProp.ReadOnly; dp.Length = dataProp.Length; dp.Precision = dataProp.Precision; dp.Scale = dataProp.Scale; return dp; }