ng new nativescript-with-ng-clicd nativescript-with-ng-cli- rm -rf src
tns create src --ng- .gitignore
# NativeScript
src/node_modules
src/platforms
ng new nativescript-with-ng-clicd nativescript-with-ng-clitns create src --ng# NativeScript
src/node_modules
src/platforms
| sudo ufw allow from 140.119.210.170 to any port 21 | |
| sudo ufw status numbered | |
| sudo ufw delete numbered |
| public class WebApiApplication : System.Web.HttpApplication | |
| { | |
| protected void Application_EndRequest() | |
| { | |
| if (Context.Response.StatusCode == 200) | |
| { | |
| return; | |
| } | |
| Response.Clear(); | |
| Response.ContentType = "text/json"; |
sudo apt-get update
sudo apt-get upgrade
sudo rpi-update
| public static class DbContextExtensions | |
| { | |
| /// <summary> | |
| /// 從ScenarioContext中取得IDbSet<T>,並加入dbContext中。 | |
| /// 其中propertyName若不指定則預設用T的名稱。 | |
| /// ex1: IDbSet<SomeClass> SomeClass | |
| /// 在不指定propertyName時會將內容加入dbContext.SomeClass中。 | |
| /// ex2: IDbSet<SomeClass> AnotherName | |
| /// 若需要使用dbContext.AnotherName則必須將propertyName設為"AnotherName"。 | |
| /// </summary> |
| var TodoItem = React.createClass({ | |
| render: function(){ | |
| return (<li key={this.props.key}>{this.props.children}</li>); | |
| } | |
| }) | |
| var TodoItems = React.createClass({ | |
| render: function() { | |
| var displayItems = this.props.items.map(function(item) { | |
| return (<TodoItem key={item.id}>{item.data}</TodoItem>); |
| var TodoItem = React.createClass({ | |
| render: function(){ | |
| return (<li key={this.props.key}>{this.props.children}</li>); | |
| } | |
| }) | |
| var TodoItems = React.createClass({ | |
| render: function() { | |
| var displayItems = this.props.items.map(function(item) { | |
| // return (<li key={item.id}>{item.data}</li>); |
| DEL %userprofile%\AppData\Local\Microsoft\VisualStudio\10.0\ComponentModelCache | |
| DEL %userprofile%\AppData\Local\Microsoft\VisualStudio\12.0\ComponentModelCache | |
| DEL %userprofile%\AppData\Local\Microsoft\VisualStudio\14.0\ComponentModelCache |
| public class MapperHelper | |
| { | |
| public static IList<T> GetDataFromDataTable<T>(DataSet dataSet, int dataTableIndex) | |
| { | |
| var table = dataSet.Tables[dataTableIndex]; | |
| using (var reader = dataSet.CreateDataReader(table)) | |
| { | |
| return Mapper.Map<IList<T>>(reader).ToList(); | |
| } | |
| } |
| { | |
| "StatusCode": 200, | |
| "Result": { | |
| Name = "Wellwind", | |
| Age = 30 | |
| }, | |
| "Error": null | |
| } |