コード例 #1
0
ファイル: WsdlChangesTestDto.cs プロジェクト: jaxx/XRoadLib
 public static long?ConvertBack(WsdlChangesTestDto entity)
 {
     return(entity.MultipleProperty != null && entity.MultipleProperty.Length > 0 ? (long?)entity.MultipleProperty[0] : null);
 }
コード例 #2
0
ファイル: WsdlChangesTestDto.cs プロジェクト: jaxx/XRoadLib
 public static void Convert(WsdlChangesTestDto entity, long?value)
 {
     entity.MultipleProperty = value.HasValue ? new[] { value.Value } : null;
 }
コード例 #3
0
ファイル: WsdlChangesTestDto.cs プロジェクト: jaxx/XRoadLib
 public static string ConvertBack(WsdlChangesTestDto entity)
 {
     return(entity.ChangedTypeProperty.HasValue ? entity.ChangedTypeProperty.Value.ToString(System.Globalization.CultureInfo.InvariantCulture) : null);
 }
コード例 #4
0
ファイル: WsdlChangesTestDto.cs プロジェクト: jaxx/XRoadLib
 public static void Convert(WsdlChangesTestDto entity, string value)
 {
     entity.ChangedTypeProperty = System.Convert.ToInt64(value);
 }
コード例 #5
0
ファイル: WsdlChangesTestDto.cs プロジェクト: jaxx/XRoadLib
 public static long?ConvertBack(WsdlChangesTestDto entity)
 {
     return(entity.RenamedToProperty);
 }
コード例 #6
0
ファイル: WsdlChangesTestDto.cs プロジェクト: jaxx/XRoadLib
 public static void Convert(WsdlChangesTestDto entity, long?value)
 {
     entity.RenamedToProperty = value;
 }