public void Save()
        {
            SqlTransaction t = null;

            try
            {
                t = SqlHelper.BeginTransaction(Config.ConnectionString);

                Item = ItemAttributes.GetTableFromItemAttributes(TableName, TableItemAttributes);

                Item.IsNew = cxt.IsNew;

                Item.Save(t);

                #region Set ID
                switch (TableName)
                {
                    case RsOneItemTable.Unknown:
                        break;
                    case RsOneItemTable.Attribute:
                        TableConfigItemAttributes.Set(AttributeE.AttributeID, Item.ID);
                        break;
                    case RsOneItemTable.AttributeLayout:
                        break;
                    case RsOneItemTable.AttributeType:
                        break;
                    case RsOneItemTable.Category:
                        TableConfigItemAttributes.Set(AttributeE.CategoryID, Item.ID);
                        break;
                    case RsOneItemTable.Item:
                        break;
                    case RsOneItemTable.ItemAttribute:
                        break;
                    case RsOneItemTable.Layout:
                        break;
                    case RsOneItemTable.Log:
                        break;
                    case RsOneItemTable.Role:
                        break;
                    case RsOneItemTable.RoleTask:
                        break;
                    case RsOneItemTable.Service:
                        TableConfigItemAttributes.Set(AttributeE.ServiceID, Item.ID);
                        break;
                    case RsOneItemTable.ServiceCategory:
                        break;
                    case RsOneItemTable.Status:
                        break;
                    case RsOneItemTable.ServiceTask:
                        break;
                    case RsOneItemTable.ServiceType:
                        break;
                    case RsOneItemTable.ServiceUser:
                        break;
                    case RsOneItemTable.Task:
                        break;
                    case RsOneItemTable.User:
                        break;
                    case RsOneItemTable.UserRole:
                        break;
                    case RsOneItemTable.AttributeTable:
                        break;
                    case RsOneItemTable.ZAdminAttribute:
                        break;
                    case RsOneItemTable.ZDummyAttribute:
                        break;
                    default:
                        break;
                }
                #endregion

                TableConfigItemAttributes.Save(t);

                SqlHelper.CommitTransaction(t);

                t = SqlHelper.BeginTransaction(Config.ConnectionString);

                SelectedCategories.Save(t);

                SqlHelper.CommitTransaction(t);
            }
            catch (Exception ex)
            {
                SqlHelper.RollbackTransaction(t);

                throw ex;
            }
        }