/// <summary> /// Retourne l'attribut Table. /// </summary> /// <param name="dataContract">Données du DataContract.</param> /// <returns>Code généré.</returns> protected override string LoadTableAttribute(ModelDataContract dataContract) { if (dataContract == null) { throw new ArgumentNullException("dataContract"); } return("[Table(\"" + dataContract.Name + "\")]"); }
/// <summary> /// Retourne l'attribut DataContract. /// </summary> /// <param name="dataContract">Données du DataContract.</param> /// <returns>Code généré.</returns> protected override string LoadDataContractAttribute(ModelDataContract dataContract) { if (dataContract == null) { throw new ArgumentNullException("dataContract"); } StringBuilder sb = new StringBuilder(); sb.Append("[DataContract("); sb.Append("Namespace = \"http://" + dataContract.Namespace.Replace('.', '/') + "/\""); sb.Append(")]"); return(sb.ToString()); }