public FileValue GetFileValueById(long id)
 {
     return((FileValue)ResourceAttributeValueRepro.Query(u => u.Id == id).FirstOrDefault());
 }
 public ResourceAttributeValue GetValueByUsageAndResource(long usageId, long resouceId)
 {
     return((ResourceAttributeValue)ResourceAttributeValueRepro.Query(u => u.ResourceAttributeUsage.Id == usageId && u.Resource.Id == resouceId).FirstOrDefault());
 }
 public List <RS.ResourceAttributeValue> GetValuesByResource(R.Resource resource)
 {
     return(ResourceAttributeValueRepro.Query(u => u.Resource.Id == resource.Id).ToList());
 }