Exemplo n.º 1
0
 public Property(MyMeta.IColumn column, RequestContext context)
 {
     this._context = context;
     this._table   = column.Table;
     this._column  = column;
     this._output  = context.Zeus.Output;
     this._script  = context.ScriptSettings;
 }
Exemplo n.º 2
0
 public Property(MyMeta.IColumn column, RequestContext context)
 {
     this._context = context;
     this._table = column.Table;
     this._column = column;
     this._output = context.Zeus.Output;
     this._script = context.ScriptSettings;
 }
Exemplo n.º 3
0
 //public GenColumn(MyMeta.IColumn column, Zeus.IZeusOutput outputDest, MyMeta.ITable table, Dnp.Utils.Utils dnp)
 public GenColumn(MyMeta.IColumn column, MyMeta.ITable table, RequestContext context)
 {
     m_IColumn  = column;
     script     = ScriptSettings.GetInstance();
     output     = context.Zeus.Output;
     _util      = new CommonUtility();
     _table     = table;
     m_DnpUtils = context.ScriptSettings.DnpUtils;
 }
Exemplo n.º 4
0
 //public GenColumn(MyMeta.IColumn column, Zeus.IZeusOutput outputDest, MyMeta.ITable table, Dnp.Utils.Utils dnp)
 public GenColumn(MyMeta.IColumn column, MyMeta.ITable table, RequestContext context)
 {
     m_IColumn = column;
     script = ScriptSettings.GetInstance();
     output = context.Zeus.Output;
     _util = new CommonUtility();
     _table = table;
     m_DnpUtils = context.ScriptSettings.DnpUtils;
 }
 /// <summary>
 /// This renders short properties with DataAnnotations Attributes.
 /// </summary>
 /// <param name="column">The IColumn object</param>
 /// <param name="context">The RequestContext</param>
 /// <param name="omitList">Comma-delimited list of properties to omit</param>
 public BusinessObjectsPropertyRenderDataAnnotationsForDbContext(MyMeta.IColumn column, RequestContext context, string omitList)
     : this(column, context)
 {
     if (!string.IsNullOrEmpty(omitList))
     {
         this._omitList = omitList.ToLower().Split(',');
     }
     else
     {
         this._omitList = new string[0];
     }
 }
 /// <summary>
 /// This renders short properties with DataAnnotations Attributes.
 /// </summary>
 /// <param name="column"></param>
 /// <param name="context"></param>
 /// <example>
 /// [Required(ErrorMessage = "Category Name is required.")]
 /// [StringLength(50, ErrorMessage = "Category Name must be between 1 and 50 characters.")]
 /// [DisplayName("Category Name")]
 /// public string CategoryName { get; set; }
 /// </example>
 public BusinessObjectsPropertyRenderDataAnnotationsForDbContext(MyMeta.IColumn column, RequestContext context)
     : base(column, context)
 {
     this._util     = context.Utility;
     this._omitList = new string[0];
 }
Exemplo n.º 7
0
 public BusinessObjectsPropertyRenderEntLibValidation(MyMeta.IColumn column, RequestContext context)
     : base(column, context)
 {
     this._util = context.Utility;
 }
Exemplo n.º 8
0
 public bool Equals(MyMeta.IColumn other)
 {
     throw new NotImplementedException();
 }
 /// <summary>
 /// This renders short properties with DataAnnotations Attributes.
 /// </summary>
 /// <param name="column"></param>
 /// <param name="context"></param>
 /// <example>
 /// [Required(ErrorMessage = "Category Name is required.")]
 /// [StringLength(50, ErrorMessage = "Category Name must be between 1 and 50 characters.")]
 /// [DisplayName("Category Name")]
 /// public string CategoryName { get; set; }
 /// </example>
 public BusinessObjectsPropertyRenderDataAnnotations(MyMeta.IColumn column, RequestContext context)
     : base(column, context)
 {
     this._util = context.Utility;
 }