示例#1
0
 internal static VisiblilityObservationObjects Get(this ObservationObject observObject)
 {
     return(new VisiblilityObservationObjects
     {
         soper = observObject.Creator?.Trim(),
         DTO = observObject.DTO,
         sGroupOO = observObject.Group,
         idOO = observObject.Id?.Trim(),
         saffiliation = observObject.ObjectType.ToString(),
         OBJECTID = observObject.ObjectId,
         ifShare = observObject.Shared ? 1 : 0,
         sTitleOO = observObject.Title?.Trim()
     });
 }
示例#2
0
 internal static void Update(this VisiblilityObservationObjects dbObservationPoint, ObservationObject observationObject)
 {
     dbObservationPoint.sGroupOO     = observationObject.Group;
     dbObservationPoint.sTitleOO     = observationObject.Title;
     dbObservationPoint.saffiliation = observationObject.ObjectType.ToString();
     dbObservationPoint.idOO         = observationObject.Id;
 }