Exemple #1
0
        private DateTime?getValueProperty()
        {
            foreach (PropertyInfo prop in entity.GetType().GetProperties())
            {
                if (prop.Name == DataBindings[0].PropertyName)
                {
                    return(prop.GetValue(entity, null) as DateTime?);
                }
            }

            return(null);
        }
Exemple #2
0
 private bool isCorrectTypeEntity(EntityPersistence entity)
 {
     return(entitySource == entity.GetType().Name);
 }