-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Nityan Khanna
committed
May 7, 2018
1 parent
e5cf2aa
commit 3b6044f
Showing
5 changed files
with
114 additions
and
0 deletions.
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,46 @@ | ||
/* | ||
* Copyright 2016-2018 Mohawk College of Applied Arts and Technology | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); you | ||
* may not use this file except in compliance with the License. You may | ||
* obtain a copy of the License at | ||
* | ||
* http:https://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT | ||
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the | ||
* License for the specific language governing permissions and limitations under | ||
* the License. | ||
* | ||
* User: khannan | ||
* Date: 2018-5-7 | ||
*/ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
using OpenIZ.Core.Model.Entities; | ||
|
||
namespace OpenIZAdmin.Services.Dataset | ||
{ | ||
/// <summary> | ||
/// Class DatasetService. | ||
/// </summary> | ||
/// <seealso cref="OpenIZAdmin.Services.Dataset.IDatasetService" /> | ||
public class DatasetService : IDatasetService | ||
{ | ||
/// <summary> | ||
/// Converts an entity or derived entity to a dataset instance. | ||
/// </summary> | ||
/// <typeparam name="T">The type of instance to convert to a dataset.</typeparam> | ||
/// <param name="instance">The instance.</param> | ||
/// <returns>Returns the dataset.</returns> | ||
/// <exception cref="NotImplementedException"></exception> | ||
public DataInstallAction ConvertToDataset<T>(T instance) where T : Entity | ||
{ | ||
throw new NotImplementedException(); | ||
} | ||
} | ||
} |
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,41 @@ | ||
/* | ||
* Copyright 2016-2018 Mohawk College of Applied Arts and Technology | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); you | ||
* may not use this file except in compliance with the License. You may | ||
* obtain a copy of the License at | ||
* | ||
* http:https://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT | ||
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the | ||
* License for the specific language governing permissions and limitations under | ||
* the License. | ||
* | ||
* User: khannan | ||
* Date: 2018-5-7 | ||
*/ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
using OpenIZ.Core.Model.Entities; | ||
|
||
namespace OpenIZAdmin.Services.Dataset | ||
{ | ||
/// <summary> | ||
/// Represents a dataset service. | ||
/// </summary> | ||
public interface IDatasetService | ||
{ | ||
/// <summary> | ||
/// Converts an entity or derived entity to a dataset instance. | ||
/// </summary> | ||
/// <typeparam name="T">The type of instance to convert to a dataset.</typeparam> | ||
/// <param name="instance">The instance.</param> | ||
/// <returns>Returns the dataset.</returns> | ||
DataInstallAction ConvertToDataset<T>(T instance) where T : Entity; | ||
} | ||
} |
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
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
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