Example #1
0
        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);
        }
Example #2
0
        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;
        }