-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CONTENT-5799: add DataTypeExpessionEmail type.
- Loading branch information
Showing
2 changed files
with
29 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
using System.Collections; | ||
using System.Collections.Generic; | ||
using System.Data; | ||
using System.Web; | ||
using DotNetNuke.Common; | ||
using DotNetNuke.Modules.UserDefinedTable.Components; | ||
using DotNetNuke.Modules.UserDefinedTable.Interfaces; | ||
using DotNetNuke.Services.Mail; | ||
|
||
namespace DotNetNuke.Modules.UserDefinedTable.DataTypes | ||
{ | ||
#region DataType | ||
|
||
/// ----------------------------------------------------------------------------- | ||
/// <summary> | ||
/// MetaData and Formating for DataType "DataTypeExpessionEmail" | ||
/// </summary> | ||
/// ----------------------------------------------------------------------------- | ||
public class DataTypeExpessionEmail : DataTypeExpression, IEmailAdressSource | ||
{ | ||
public string GetEmailAddress(string fieldName, DataRow row) | ||
{ | ||
return row[fieldName].AsString(); | ||
} | ||
} | ||
|
||
#endregion | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5a393af
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ben, please add DataTypeExpessionEmail.cs to the project file. Thx