Esempio n. 1
0
        internal PropertiesInfo GetProperty(int PropertyId, int PortalId)
        {
            Data.PropertiesDB db = new Data.PropertiesDB();
            PropertiesInfo    pi = null;

            using (IDataReader dr = db.GetProperties(PropertyId, PortalId))
            {
                while (dr.Read())
                {
                    pi = FillObject(dr);
                }
                dr.Close();
            }
            return(pi);
        }
		internal List<PropertiesInfo> ListProperties(int PortalId, int ObjectType, int ObjectOwnerId)
		{
			List<PropertiesInfo> list = new List<PropertiesInfo>();
			Data.PropertiesDB db = new Data.PropertiesDB();
			using (IDataReader dr = db.ListProperties(PortalId, ObjectType, ObjectOwnerId))
			{
				while (dr.Read())
				{
					PropertiesInfo p = FillObject(dr);
					if (p != null)
					{
						list.Add(p);
					}
				}
				dr.Close();
			}
			return list;
		}
Esempio n. 3
0
        internal List <PropertiesInfo> ListProperties(int PortalId, int ObjectType, int ObjectOwnerId)
        {
            List <PropertiesInfo> list = new List <PropertiesInfo>();

            Data.PropertiesDB db = new Data.PropertiesDB();
            using (IDataReader dr = db.ListProperties(PortalId, ObjectType, ObjectOwnerId))
            {
                while (dr.Read())
                {
                    PropertiesInfo p = FillObject(dr);
                    if (p != null)
                    {
                        list.Add(p);
                    }
                }
                dr.Close();
            }
            return(list);
        }
Esempio n. 4
0
 internal void DeleteProperty(int PortalId, int PropertyId)
 {
     Data.PropertiesDB db = new Data.PropertiesDB();
     db.DeleteProperty(PortalId, PropertyId);
 }
Esempio n. 5
0
 internal PropertiesInfo SaveProperty(PropertiesInfo pi)
 {
     Data.PropertiesDB db = new Data.PropertiesDB();
     pi.PropertyId = db.SaveProperty(pi.PropertyId, pi.PortalId, pi.ObjectType, pi.ObjectOwnerId, pi.Name, pi.DataType, pi.DefaultAccessControl, pi.IsHidden, pi.IsRequired, pi.IsReadOnly, pi.ValidationExpression, pi.EditTemplate, pi.ViewTemplate, pi.SortOrder, pi.DefaultValue);
     return(GetProperty(pi.PropertyId, pi.PortalId));
 }
		internal void DeleteProperty(int PortalId, int PropertyId)
		{
			Data.PropertiesDB db = new Data.PropertiesDB();
			db.DeleteProperty(PortalId, PropertyId);
		}
		internal PropertiesInfo SaveProperty(PropertiesInfo pi)
		{
			Data.PropertiesDB db = new Data.PropertiesDB();
			pi.PropertyId = db.SaveProperty(pi.PropertyId, pi.PortalId, pi.ObjectType, pi.ObjectOwnerId, pi.Name, pi.DataType, pi.DefaultAccessControl, pi.IsHidden, pi.IsRequired, pi.IsReadOnly, pi.ValidationExpression, pi.EditTemplate, pi.ViewTemplate, pi.SortOrder, pi.DefaultValue);
			return GetProperty(pi.PropertyId, pi.PortalId);
		}
		internal PropertiesInfo GetProperty(int PropertyId, int PortalId)
		{
			Data.PropertiesDB db = new Data.PropertiesDB();
			PropertiesInfo pi = null;
			using (IDataReader dr = db.GetProperties(PropertyId, PortalId))
			{
				while (dr.Read())
				{
					pi = FillObject(dr);
				}
				dr.Close();
			}
			return pi;
		}