Пример #1
0
        private bool IsNew <T>(T entity)
        {
            PropertyInfo idProp = FindUniqueIdProperty <T>();
            object       val    = idProp.GetValue(entity, null);

            if (_idGenerator.IsValid(val))
            {
                return(false);
            }
            else
            {
                return(true);
            }
        }