public string ToYAMLInsert() { var sb = new StringBuilder(); sb.AppendFormat("id: {0}", Id); sb.AppendLine(); sb.AppendLine("model: user"); sb.AppendFormat("pseudo: {0}", Name); sb.AppendLine(); sb.AppendFormat("email: {0}", MailAddress.GetSafeRails(true)); sb.AppendLine(); sb.AppendFormat("password: {0}", Password.GetSafeRails(true)); sb.AppendLine(); sb.AppendFormat("created_at: {0}", CreationDate); sb.AppendLine(); sb.AppendFormat("updated_at: {0}", LastUpdate); sb.AppendLine(); sb.AppendFormat("role: :staff"); sb.AppendLine(); return(sb.ToString()); }