Exemplo n.º 1
0
        static ModelSampleData getData()
        {
            #region setSetting
            var setting = new CommonClassSetting();
            setting.Name      = "CommonClassSetting";
            setting.NameSpace = "CodeGenerator.Models";
            #endregion

            #region setDetail
            var details = new List <ClassProperty>();
            details.Add(new ClassProperty()
            {
                Type = "String", Name = "Name"
            });
            details.Add(new ClassProperty()
            {
                Type = "String", Name = "NameSpace"
            });
            #endregion
            #region setData
            var data = new ModelSampleData();
            data.Setting    = setting;
            data.Properties = details;
            #endregion
            return(data);
        }
Exemplo n.º 2
0
 public ModelSamplePartial(ModelSampleData data)
 {
     this.SampleData = data;
 }