forked from ddrilling/AsbCloudServer
Убрано лишнее
This commit is contained in:
parent
2746c94729
commit
c62d3adb18
@ -150,14 +150,5 @@ namespace AsbCloudInfrastructure.Services.SAUB
|
|||||||
|
|
||||||
return db.SaveChangesAsync(token);
|
return db.SaveChangesAsync(token);
|
||||||
}
|
}
|
||||||
|
|
||||||
private bool hasAllFieldsInType<T>(IEnumerable<string> sortFields)
|
|
||||||
{
|
|
||||||
var type = typeof(T);
|
|
||||||
var properyNames = type.GetProperties().Select(x => x.Name.ToLower());
|
|
||||||
sortFields = sortFields.Select(x => x.ToLower().Split(' ')[0]);
|
|
||||||
var result = sortFields.All(field => properyNames.Contains(field));
|
|
||||||
return result;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user