Пример #1
0
 /// <summary>
 /// Call FHIRbase function and cast value
 /// </summary>
 /// <typeparam name="T"></typeparam>
 /// <param name="func"></param>
 /// <returns></returns>
 public static T Cast <T>(this FHIRbaseFunc func)
 {
     return((T)PostgresHelper.Func(func.Name, func.Parameters.ToArray()));
 }
Пример #2
0
 public static FHIRbaseFunc WithInt(this FHIRbaseFunc func, int limit)
 {
     func.Parameters.Add(PostgresHelper.Int(limit));
     return(func);
 }
Пример #3
0
 /// <summary>
 /// Add jsonb parameter
 /// </summary>
 /// <param name="func"></param>
 /// <param name="jsonParameter"></param>
 /// <returns></returns>
 public static FHIRbaseFunc WithJsonb(this FHIRbaseFunc func, string jsonParameter)
 {
     func.Parameters.Add(PostgresHelper.Jsonb(jsonParameter));
     return(func);
 }
Пример #4
0
 public static FHIRbaseFunc WithTextArray(this FHIRbaseFunc func, string[] resources)
 {
     func.Parameters.Add(PostgresHelper.TextArray(resources));
     return(func);
 }
Пример #5
0
 /// <summary>
 /// Add text parameter
 /// </summary>
 /// <param name="func"></param>
 /// <param name="textParameter"></param>
 /// <returns></returns>
 public static FHIRbaseFunc WithText(this FHIRbaseFunc func, string textParameter)
 {
     func.Parameters.Add(PostgresHelper.Text(textParameter));
     return(func);
 }