public aspnet_ExtendedPropertiesEntityInfo DataRowToEntityInfo(DataRow dr)
        {
            aspnet_ExtendedPropertiesEntityInfo propertiesEntityInfo = new aspnet_ExtendedPropertiesEntityInfo();

            try
            {
                propertiesEntityInfo.UserId            = (Guid)dr["UserId"];
                propertiesEntityInfo.Apellido          = (string)dr["Apellido"];
                propertiesEntityInfo.Nombres           = (string)dr["Nombres"];
                propertiesEntityInfo.Empresa           = Convert.IsDBNull(dr["Empresa"]) ? (string)null : (string)dr["Empresa"];
                propertiesEntityInfo.LimiteDeEncuestas = (int)dr["LimiteDeEncuestas"];
                propertiesEntityInfo.TelefonoFijo1     = Convert.IsDBNull(dr["TelefonoFijo1"]) ? (string)null : (string)dr["TelefonoFijo1"];
                propertiesEntityInfo.TelefonoFijo2     = Convert.IsDBNull(dr["TelefonoFijo2"]) ? (string)null : (string)dr["TelefonoFijo2"];
                propertiesEntityInfo.Fax       = Convert.IsDBNull(dr["Fax"]) ? (string)null : (string)dr["Fax"];
                propertiesEntityInfo.Celular   = Convert.IsDBNull(dr["Celular"]) ? (string)null : (string)dr["Celular"];
                propertiesEntityInfo.Email     = Convert.IsDBNull(dr["Email"]) ? (string)null : (string)dr["Email"];
                propertiesEntityInfo.FechaAlta = (DateTime)dr["FechaAlta"];
            }
            catch (Exception ex)
            {
                Helpers.Logger.Logger.LogExceptionStatic(ex);
                throw ex;
            }
            return(propertiesEntityInfo);
        }
 public bool UpdateFromInfo(aspnet_ExtendedPropertiesEntityKey EntityKey, aspnet_ExtendedPropertiesEntityInfo EntityInfo)
 {
     try
     {
         aspnet_ExtendedPropertiesEntityUpdate EntityUpdate = new aspnet_ExtendedPropertiesEntityUpdate();
         EntityUpdate.LoadFromInfo(EntityInfo);
         return(this.Update(EntityKey, EntityUpdate));
     }
     catch (Exception ex)
     {
         Helpers.Logger.Logger.LogExceptionStatic(ex);
         throw ex;
     }
 }
 public void InsertFromInfo(aspnet_ExtendedPropertiesEntityInfo EntityInfo)
 {
     try
     {
         aspnet_ExtendedPropertiesEntityInsert EntityInsert = new aspnet_ExtendedPropertiesEntityInsert();
         EntityInsert.LoadFromInfo(EntityInfo);
         this.Insert(EntityInsert);
     }
     catch (Exception ex)
     {
         Helpers.Logger.Logger.LogExceptionStatic(ex);
         throw ex;
     }
 }
 public aspnet_ExtendedPropertiesEntityInfo.aspnet_ExtendedPropertiesEntityInfoList DataTableToListOfEntityInfo(DataTable dt)
 {
     aspnet_ExtendedPropertiesEntityInfo[] pArray = new aspnet_ExtendedPropertiesEntityInfo[dt.Rows.Count];
     try
     {
         for (int index = 0; index < dt.Rows.Count; ++index)
         {
             pArray[index] = this.DataRowToEntityInfo(dt.Rows[index]);
         }
     }
     catch (Exception ex)
     {
         Helpers.Logger.Logger.LogExceptionStatic(ex);
         throw ex;
     }
     return(new aspnet_ExtendedPropertiesEntityInfo.aspnet_ExtendedPropertiesEntityInfoList(pArray));
 }