public InsertDomain(DomainDAO dao)
     : base(dao)
 {
     new LongAttribute(this, "Id", true);
     new StringAttribute(this, "StringAttr", false);
     new LongAttribute(this, "LongAttr", false);
 }
        public JsonResult Delete(int id)
        {
            var result = new DomainDAO().Delete(id);

            return(Json(new
            {
                status = result
            }));
        }
        public JsonResult LoadData()
        {
            List <Domain> lst = new List <Domain>();

            lst = new DomainDAO().ListAll();
            return(Json(new
            {
                data = lst,
                status = true
            }, JsonRequestBehavior.AllowGet));
        }
 public RelationshipDomain(DomainDAO dao)
     : base(dao)
 {
     new LongAttribute(this, "Id", true);
     new StringAttribute(this, "StringAttr", false);
 }
 /// <summary>
 /// Constructs a new ValueCriteria domain object.
 /// </summary>
 /// <param name="dao">
 /// Reference to the DAO for ValueCriteria objects.
 /// </param>
 public ValueCriteria(DomainDAO dao)
     : base(dao)
 {
     new LongAttribute(this, ID_ATTR, true);
     new LongAttribute(this, EFFECTIVEID_ATTR, false);
     new StringAttribute(this, VALUE_ATTR, false);
     new StringAttribute(this, RAWCRITERIA_ATTR, false);
 }
Exemplo n.º 6
0
        /// <summary>
        /// Constructs a new domain object.
        /// </summary>
        /// <param name="dao">
        /// Reference to the DAO for this domain object.
        /// </param>
        public Domain(DomainDAO dao)
        {
            log = LogManager.GetLogger(GetType().Name);

            this.dao = dao;
            newObject = false;
            forDelete = false;
            attributes = new Dictionary<string,Attribute>(5);
            relationships = new Dictionary<string,Relationship>(2);
        }
 /// <summary>
 /// Constructs a new DynamicProperty domain object.
 /// </summary>
 /// <param name="dao">
 /// The DynamicProperty DAO object.
 /// </param>
 public DynamicProperty(DomainDAO dao)
     : base(dao)
 {
     new LongAttribute(this, ID_ATTR, true);
     new LongAttribute(this, APPLICATIONID_ATTR, false);
     new StringAttribute(this, APPLICATIONNAME_ATTR, false);
     new LongAttribute(this, PROPERTYID_ATTR, false);
     new StringAttribute(this, CATEGORY_ATTR, false);
     new StringAttribute(this, PROPERTYNAME_ATTR, false);
     new StringAttribute(this, DEFAULTVALUE_ATTR, false);
     new StringAttribute(this, PROPERTYTYPE_ATTR, false);
     new StringAttribute(this, QUALIFIER_ATTR, false);
     new CollectionRelationship(this, EFFECTIVEVALUES_REL, "EffectiveValue", "AssignId");
 }
 /// <summary>
 /// Constructs a new PropertyDefinition domain object.
 /// </summary>
 /// <param name="dao">
 /// Reference to the DAO object for PropertyDefinitions.
 /// </param>
 public PropertyDefinition(DomainDAO dao)
     : base(dao)
 {
     new LongAttribute(this, ID_ATTR, true).AttributeValueChanged += HandleAttributeChange;
     new StringAttribute(this, CATEGORY_ATTR, false).AttributeValueChanged += HandleAttributeChange;
     new StringAttribute(this, NAME_ATTR, false).AttributeValueChanged += HandleAttributeChange;
     new LongAttribute(this, DATATYPE_ATTR, false).AttributeValueChanged += HandleAttributeChange;
     new StringAttribute(this, DESCRIPTION_ATTR, false).AttributeValueChanged += HandleAttributeChange;
 }
 /// <summary>
 /// Constructs a new Application domain object.
 /// </summary>
 /// <param name="dao">
 /// The DAO object for Application.
 /// </param>
 public Application(DomainDAO dao)
     : base(dao)
 {
     new LongAttribute(this, ID_ATTR, true).AttributeValueChanged += HandleAttributeChange;
     new StringAttribute(this, NAME_ATTR, false).AttributeValueChanged += HandleAttributeChange;
 }
Exemplo n.º 10
0
 /// <summary>
 /// Constructs a new DataType object.
 /// </summary>
 /// <param name="dao">
 /// The DAO object associated with the DataType object.
 /// </param>
 public DataType(DomainDAO dao)
     : base(dao)
 {
     new LongAttribute(this, ID_ATTR, true);
     new StringAttribute(this, NAME_ATTR, false);
 }
Exemplo n.º 11
0
 /// <summary>
 /// Constructs a new Form domain object.
 /// </summary>
 /// <param name="dao">
 /// Reference to the form DAO object.
 /// </param>
 public Form(DomainDAO dao)
     : base(dao)
 {
     new LongAttribute(this, ID_ATTR, true);
     new StringAttribute(this, DESCRIPTION_ATTR, false);
 }
 /// <summary>
 /// Constructs a new EffectiveValue domain object.
 /// </summary>
 /// <param name="dao">
 /// Reference to the DAO object for this domain.
 /// </param>
 public EffectiveValue(DomainDAO dao)
     : base(dao)
 {
     new LongAttribute(this, ID_ATTR, true);
     new LongAttribute(this, ASSIGNID_ATTR, false);
     new DateTimeAttribute(this, EFFECTIVESTARTDATE_ATTR);
     new DateTimeAttribute(this, EFFECTIVEENDDATE_ATTR);
     new CollectionRelationship(this, VALUECRITERIA_REL, "ValueCriteria", "EffectiveId");
 }