Example #1
0
 public static ClientDataSet.EntityFieldListsValuesDataTable GetEntityFieldListValue(Guid entityFieldListValueId)
 {
     using (EntityFieldListsValuesTableAdapter adapter = new EntityFieldListsValuesTableAdapter(OrganizationProvider.GetConnectionString(UserContext.Current.OrganizationId)))
     {
         return(adapter.GetEntityFieldListValue(entityFieldListValueId));
     }
 }
Example #2
0
 public static ClientDataSet.EntityFieldListsValuesDataTable GetEntityFieldListValues(Guid entityFieldId, Guid organizationId, bool?active)
 {
     using (EntityFieldListsValuesTableAdapter adapter = new EntityFieldListsValuesTableAdapter(OrganizationProvider.GetConnectionString(organizationId)))
     {
         return(adapter.GetEntityFieldListValues(entityFieldId, active));
     }
 }
Example #3
0
        public static void UpdateEntityFieldListValue(Guid entityFieldListValueId, Guid entityFieldId, string name, string value, bool Default, bool active)
        {
            using (EntityFieldListsValuesTableAdapter adapter = new EntityFieldListsValuesTableAdapter(OrganizationProvider.GetConnectionString(UserContext.Current.OrganizationId)))
            {
                adapter.Update(entityFieldListValueId, entityFieldId, name, value, Default, active);
            }

            RemoveFromCache();
        }
Example #4
0
        public static void DeleteEntityFieldListValue(Guid entityFieldListValueId)
        {
            using (EntityFieldListsValuesTableAdapter adapter = new EntityFieldListsValuesTableAdapter(OrganizationProvider.GetConnectionString(UserContext.Current.OrganizationId)))
            {
                adapter.Delete(entityFieldListValueId);
            }

            RemoveFromCache();
        }
Example #5
0
        public static Guid InsertEntityFieldListValue(Guid entityFieldId, string name, string value, bool Default, bool active)
        {
            ClientDataSet.EntityFieldListsValuesDataTable table = new ClientDataSet.EntityFieldListsValuesDataTable();
            ClientDataSet.EntityFieldListsValuesRow       row   = table.NewEntityFieldListsValuesRow();

            row.EntityFieldListValueId = Guid.NewGuid();
            row.EntityFieldId          = entityFieldId;
            row.Name    = name;
            row.Value   = value;
            row.Default = Default;
            row.Active  = active;

            table.AddEntityFieldListsValuesRow(row);

            using (EntityFieldListsValuesTableAdapter adapter = new EntityFieldListsValuesTableAdapter(OrganizationProvider.GetConnectionString(UserContext.Current.OrganizationId)))
            {
                adapter.Update(row);
            }

            RemoveFromCache();

            return(row.EntityFieldListValueId);
        }