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); }
private bool isCorrectTypeEntity(EntityPersistence entity) { return(entitySource == entity.GetType().Name); }