Ejemplo n.º 1
0
 public AttributesComponent(Guid guid)
 {
     mifnexsoEntities = new MIFNEXSOEntities();
     try
     {
         if (guid != Guid.Empty)
         {
             attributes = mifnexsoEntities.Atrributes.FirstOrDefault(a => a.AttributeID == guid);
         }
         else
         {
             attributes                = new Atrributes();
             attributes.AttributeID    = Guid.Empty;
             attributes.OrganizationID = Guid.Empty;
             attributes.Type           = string.Empty;
             attributes.Value          = string.Empty;
             attributes.ValueType      = string.Empty;
             attributes.Description    = string.Empty;
             attributes.Label          = string.Empty;
             mifnexsoEntities.Atrributes.AddObject(attributes);
         }
     }
     catch (Exception)
     {
         throw;
     }
 }
Ejemplo n.º 2
0
 public AttributesComponent()
 {
     mifnexsoEntities          = new MIFNEXSOEntities();
     attributes                = new Atrributes();
     attributes.AttributeID    = Guid.Empty;
     attributes.OrganizationID = Guid.Empty;
     attributes.Type           = string.Empty;
     attributes.Value          = string.Empty;
     attributes.ValueType      = string.Empty;
     attributes.Description    = string.Empty;
     attributes.Label          = string.Empty;
     mifnexsoEntities.Atrributes.AddObject(attributes);
 }