本文整理汇总了C#中jsResponse类的典型用法代码示例。如果您正苦于以下问题:C# jsResponse类的具体用法?C# jsResponse怎么用?C# jsResponse使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
jsResponse类属于命名空间,在下文中一共展示了jsResponse类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。
示例1: EmployeesCollection_LoadAll
public jsResponse<EmployeesCollection, Employees> EmployeesCollection_LoadAll()
{
jsResponse<EmployeesCollection, Employees> response = new jsResponse<EmployeesCollection, Employees>();
try
{
EmployeesQuery q = new EmployeesQuery();
q.Select(q.EmployeeID, q.FirstName, q.LastName);
EmployeesCollection collection = new EmployeesCollection();
collection.Load(q);
if(collection.Count == 0)
{
EnsureData();
collection = new EmployeesCollection();
collection.LoadAll();
}
response.collection = collection;
}
catch (Exception ex)
{
response.exception = ex.Message;
}
return response;
}
开发者ID:BrewDawg,项目名称:Tiraggo,代码行数:29,代码来源:TiraggoWcfClass.svc.cs
示例2: CategoriesCollection_Save
public jsResponse<CategoriesCollection, Categories> CategoriesCollection_Save(CategoriesCollection collection)
{
jsResponse<CategoriesCollection, Categories> response = new jsResponse<CategoriesCollection, Categories>();
try
{
collection.Save();
response.collection = collection;
}
catch (Exception ex)
{
response.exception = ex.Message;
}
return response;
}
开发者ID:stacyjeptha,项目名称:EntitySpaces-CompleteSource,代码行数:16,代码来源:MyServiceClass.svc.cs
示例3: EmployeesCollection_Save
public jsResponse<EmployeesCollection, Employees> EmployeesCollection_Save(EmployeesCollection collection)
{
jsResponse<EmployeesCollection, Employees> response = new jsResponse<EmployeesCollection, Employees>();
try
{
collection.Save();
response.collection = collection;
}
catch (Exception ex)
{
response.exception = ex.Message;
}
return response;
}
开发者ID:BrewDawg,项目名称:Tiraggo,代码行数:16,代码来源:TiraggoWcfClass.svc.cs
示例4: CategoriesCollection_LoadAll
public jsResponse<CategoriesCollection, Categories> CategoriesCollection_LoadAll()
{
jsResponse<CategoriesCollection, Categories> response = new jsResponse<CategoriesCollection, Categories>();
try
{
CategoriesCollection collection = new CategoriesCollection();
collection.LoadAll();
response.collection = collection;
}
catch (Exception ex)
{
response.exception = ex.Message;
}
return response;
}
开发者ID:stacyjeptha,项目名称:EntitySpaces-CompleteSource,代码行数:17,代码来源:MyServiceClass.svc.cs
示例5: Categories_LoadByPrimaryKey
public jsResponse<CategoriesCollection, Categories> Categories_LoadByPrimaryKey(System.Int32 categoryID)
{
jsResponse<CategoriesCollection, Categories> response = new jsResponse<CategoriesCollection, Categories>();
try
{
Categories entity = new Categories();
if (entity.LoadByPrimaryKey(categoryID))
{
response.entity = entity;
}
}
catch (Exception ex)
{
response.exception = ex.Message;
}
return response;
}
开发者ID:stacyjeptha,项目名称:EntitySpaces-CompleteSource,代码行数:19,代码来源:MyServiceClass.svc.cs
示例6: Employees_LoadHierarchical
public jsResponse<EmployeesCollection, Employees> Employees_LoadHierarchical()
{
jsResponse<EmployeesCollection, Employees> response = new jsResponse<EmployeesCollection, Employees>();
try
{
// The Main Query
EmployeesQuery q = new EmployeesQuery("e");
q.Select(q.EmployeeID, q.FirstName, q.LastName, q.City, q.Country, q.HomePhone, q.Region, q.PostalCode, q.Title);
q.Where(q.EmployeeID < 7);
// The OrdersCollection
OrdersQuery o1 = q.Prefetch<OrdersQuery>(Employees.Prefetch_OrdersCollectionByEmployeeID);
EmployeesQuery emp1 = o1.GetQuery<EmployeesQuery>();
o1.Where(emp1.EmployeeID < 7);
// The OrdersDetailsCollection
OrderDetailsQuery od = q.Prefetch<OrderDetailsQuery>(Employees.Prefetch_OrdersCollectionByEmployeeID, Orders.Prefetch_OrderDetailsCollectionByOrderID);
EmployeesQuery emp2 = od.GetQuery<EmployeesQuery>();
OrdersQuery o2 = od.GetQuery<OrdersQuery>();
od.Where(emp2.EmployeeID < 7);
// Load It
EmployeesCollection coll = new EmployeesCollection();
if (coll.Load(q))
{
response.collection = coll;
response.columnCollection["Employees"] = jsColumn.PopulateColumns(coll[0]);
response.columnCollection["Orders"] = jsColumn.PopulateColumns(coll[0].OrdersCollectionByEmployeeID[0]);
response.columnCollection["OrderDetails"] = jsColumn.PopulateColumns(coll[0].OrdersCollectionByEmployeeID[0].OrderDetailsCollectionByOrderID[0]);
}
}
catch (Exception ex)
{
response.exception = ex.Message;
}
return response;
}
开发者ID:stacyjeptha,项目名称:EntitySpaces-CompleteSource,代码行数:40,代码来源:esJson.Custom.cs
示例7: OrdersCollection_LoadAll
public jsResponse<OrdersCollection, Orders> OrdersCollection_LoadAll()
{
jsResponse<OrdersCollection, Orders> response = new jsResponse<OrdersCollection, Orders>();
try
{
OrdersCollection collection = new OrdersCollection();
collection.LoadAll();
response.collection = collection;
}
catch (Exception ex)
{
response.exception = ex.Message;
}
return response;
}
开发者ID:stacyjeptha,项目名称:EntitySpaces-CompleteSource,代码行数:17,代码来源:MyServiceClass.svc.cs
示例8: EmployeeTerritories_UpToTerritoriesByTerritoryID
public jsResponse<TerritoriesCollection, Territories> EmployeeTerritories_UpToTerritoriesByTerritoryID(System.Int32 employeeID, System.String territoryID)
{
jsResponse<TerritoriesCollection, Territories> response = new jsResponse<TerritoriesCollection, Territories>();
try
{
EmployeeTerritories entity = new EmployeeTerritories();
entity.EmployeeID = employeeID;
entity.TerritoryID = territoryID;
response.entity = entity.UpToTerritoriesByTerritoryID;
}
catch (Exception ex)
{
response.exception = ex.Message;
}
return response;
}
开发者ID:stacyjeptha,项目名称:EntitySpaces-CompleteSource,代码行数:18,代码来源:MyServiceClass.svc.cs
示例9: OrderDetails_UpToProductsByProductID
public jsResponse<ProductsCollection, Products> OrderDetails_UpToProductsByProductID(System.Int32 orderID, System.Int32 productID)
{
jsResponse<ProductsCollection, Products> response = new jsResponse<ProductsCollection, Products>();
try
{
OrderDetails entity = new OrderDetails();
entity.OrderID = orderID;
entity.ProductID = productID;
response.entity = entity.UpToProductsByProductID;
}
catch (Exception ex)
{
response.exception = ex.Message;
}
return response;
}
开发者ID:stacyjeptha,项目名称:EntitySpaces-CompleteSource,代码行数:18,代码来源:MyServiceClass.svc.cs
示例10: EmployeeTerritoriesCollection_LoadAll
public jsResponse<EmployeeTerritoriesCollection, EmployeeTerritories> EmployeeTerritoriesCollection_LoadAll()
{
jsResponse<EmployeeTerritoriesCollection, EmployeeTerritories> response = new jsResponse<EmployeeTerritoriesCollection, EmployeeTerritories>();
try
{
EmployeeTerritoriesCollection collection = new EmployeeTerritoriesCollection();
collection.LoadAll();
response.collection = collection;
}
catch (Exception ex)
{
response.exception = ex.Message;
}
return response;
}
开发者ID:stacyjeptha,项目名称:EntitySpaces-CompleteSource,代码行数:17,代码来源:MyServiceClass.svc.cs
示例11: CustomerCustomerDemo_LoadByPrimaryKey
public jsResponse<CustomerCustomerDemoCollection, CustomerCustomerDemo> CustomerCustomerDemo_LoadByPrimaryKey(System.String customerID, System.String customerTypeID)
{
jsResponse<CustomerCustomerDemoCollection, CustomerCustomerDemo> response = new jsResponse<CustomerCustomerDemoCollection, CustomerCustomerDemo>();
try
{
CustomerCustomerDemo entity = new CustomerCustomerDemo();
if (entity.LoadByPrimaryKey(customerID, customerTypeID))
{
response.entity = entity;
}
}
catch (Exception ex)
{
response.exception = ex.Message;
}
return response;
}
开发者ID:stacyjeptha,项目名称:EntitySpaces-CompleteSource,代码行数:19,代码来源:MyServiceClass.svc.cs
示例12: Orders_LoadByPrimaryKey
public jsResponse<OrdersCollection, Orders> Orders_LoadByPrimaryKey(System.Int32 orderID)
{
jsResponse<OrdersCollection, Orders> response = new jsResponse<OrdersCollection, Orders>();
try
{
Orders entity = new Orders();
if (entity.LoadByPrimaryKey(orderID))
{
response.entity = entity;
}
}
catch (Exception ex)
{
response.exception = ex.Message;
}
return response;
}
开发者ID:stacyjeptha,项目名称:EntitySpaces-CompleteSource,代码行数:19,代码来源:MyServiceClass.svc.cs
示例13: CustomerDemographicsCollection_Save
public jsResponse<CustomerDemographicsCollection, CustomerDemographics> CustomerDemographicsCollection_Save(CustomerDemographicsCollection collection)
{
jsResponse<CustomerDemographicsCollection, CustomerDemographics> response = new jsResponse<CustomerDemographicsCollection, CustomerDemographics>();
try
{
collection.Save();
response.collection = collection;
}
catch (Exception ex)
{
response.exception = ex.Message;
}
return response;
}
开发者ID:stacyjeptha,项目名称:EntitySpaces-CompleteSource,代码行数:16,代码来源:MyServiceClass.svc.cs
示例14: Customers_OrdersCollectionByCustomerID
public jsResponse<OrdersCollection, Orders> Customers_OrdersCollectionByCustomerID(System.String customerID)
{
jsResponse<OrdersCollection, Orders> response = new jsResponse<OrdersCollection, Orders>();
try
{
Customers entity = new Customers();
entity.CustomerID = customerID;
response.collection = entity.OrdersCollectionByCustomerID;
}
catch (Exception ex)
{
response.exception = ex.Message;
}
return response;
}
开发者ID:stacyjeptha,项目名称:EntitySpaces-CompleteSource,代码行数:17,代码来源:MyServiceClass.svc.cs
示例15: Employees_Save
public jsResponse<EmployeesCollection, Employees> Employees_Save(Employees entity)
{
jsResponse<EmployeesCollection, Employees> response = new jsResponse<EmployeesCollection, Employees>();
try
{
entity.Save();
response.entity = entity;
}
catch (Exception ex)
{
response.exception = ex.Message;
}
return response;
}
开发者ID:BrewDawg,项目名称:Tiraggo,代码行数:16,代码来源:TiraggoWcfClass.svc.cs
示例16: Customers_LoadByPrimaryKey
public jsResponse<CustomersCollection, Customers> Customers_LoadByPrimaryKey(System.String customerID)
{
jsResponse<CustomersCollection, Customers> response = new jsResponse<CustomersCollection, Customers>();
try
{
Customers entity = new Customers();
if (entity.LoadByPrimaryKey(customerID))
{
response.entity = entity;
}
}
catch (Exception ex)
{
response.exception = ex.Message;
}
return response;
}
开发者ID:stacyjeptha,项目名称:EntitySpaces-CompleteSource,代码行数:19,代码来源:MyServiceClass.svc.cs
示例17: Customers_UpToCustomerDemographicsCollection
public jsResponse<CustomerDemographicsCollection, CustomerDemographics> Customers_UpToCustomerDemographicsCollection(System.String customerID)
{
jsResponse<CustomerDemographicsCollection, CustomerDemographics> response = new jsResponse<CustomerDemographicsCollection, CustomerDemographics>();
try
{
Customers entity = new Customers();
entity.CustomerID = customerID;
response.collection = entity.UpToCustomerDemographicsCollection;
}
catch (Exception ex)
{
response.exception = ex.Message;
}
return response;
}
开发者ID:stacyjeptha,项目名称:EntitySpaces-CompleteSource,代码行数:17,代码来源:MyServiceClass.svc.cs
示例18: CustomerCustomerDemo_UpToCustomersByCustomerID
public jsResponse<CustomersCollection, Customers> CustomerCustomerDemo_UpToCustomersByCustomerID(System.String customerID, System.String customerTypeID)
{
jsResponse<CustomersCollection, Customers> response = new jsResponse<CustomersCollection, Customers>();
try
{
CustomerCustomerDemo entity = new CustomerCustomerDemo();
entity.CustomerID = customerID;
entity.CustomerTypeID = customerTypeID;
response.entity = entity.UpToCustomersByCustomerID;
}
catch (Exception ex)
{
response.exception = ex.Message;
}
return response;
}
开发者ID:stacyjeptha,项目名称:EntitySpaces-CompleteSource,代码行数:18,代码来源:MyServiceClass.svc.cs
示例19: CustomerDemographics_CustomerCustomerDemoCollectionByCustomerTypeID
public jsResponse<CustomerCustomerDemoCollection, CustomerCustomerDemo> CustomerDemographics_CustomerCustomerDemoCollectionByCustomerTypeID(System.String customerTypeID)
{
jsResponse<CustomerCustomerDemoCollection, CustomerCustomerDemo> response = new jsResponse<CustomerCustomerDemoCollection, CustomerCustomerDemo>();
try
{
CustomerDemographics entity = new CustomerDemographics();
entity.CustomerTypeID = customerTypeID;
response.collection = entity.CustomerCustomerDemoCollectionByCustomerTypeID;
}
catch (Exception ex)
{
response.exception = ex.Message;
}
return response;
}
开发者ID:stacyjeptha,项目名称:EntitySpaces-CompleteSource,代码行数:17,代码来源:MyServiceClass.svc.cs
示例20: CustomerDemographics_Save
public jsResponse<CustomerDemographicsCollection, CustomerDemographics> CustomerDemographics_Save(CustomerDemographics entity)
{
jsResponse<CustomerDemographicsCollection, CustomerDemographics> response = new jsResponse<CustomerDemographicsCollection, CustomerDemographics>();
try
{
entity.Save();
response.entity = entity;
}
catch (Exception ex)
{
response.exception = ex.Message;
}
return response;
}
开发者ID:stacyjeptha,项目名称:EntitySpaces-CompleteSource,代码行数:16,代码来源:MyServiceClass.svc.cs
注:本文中的jsResponse类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论