Downloads:

496

Downloads of v 2.2.1:

348

Last Update:

26 Apr 2017

Package Maintainer(s):

Software Author(s):

  • Mohamed Hassan

Tags:

odata2poco-commandline OData code-generation poco

OData2Poco-CommandLine (Install)

This is not the latest version of OData2Poco-CommandLine (Install) available.

2.2.1 | Updated: 26 Apr 2017

Downloads:

496

Downloads of v 2.2.1:

348

Maintainer(s):

Software Author(s):

  • Mohamed Hassan

OData2Poco-CommandLine (Install) 2.2.1

This is not the latest version of OData2Poco-CommandLine (Install) available.

All Checks are Passing

2 Passing Test


Validation Testing Passed


Verification Testing Passed

Details

To install OData2Poco-CommandLine (Install), run the following command from the command line or from PowerShell:

>

To upgrade OData2Poco-CommandLine (Install), run the following command from the command line or from PowerShell:

>

To uninstall OData2Poco-CommandLine (Install), run the following command from the command line or from PowerShell:

>

NOTE: This applies to both open source and commercial editions of Chocolatey.

1. Ensure you are set for organizational deployment

Please see the organizational deployment guide

  • Open Source or Commercial:
    • Proxy Repository - Create a proxy nuget repository on Nexus, Artifactory Pro, or a proxy Chocolatey repository on ProGet. Point your upstream to https://chocolatey.org/api/v2. Packages cache on first access automatically. Make sure your choco clients are using your proxy repository as a source and NOT the default community repository. See source command for more information.
    • You can also just download the package and push it to a repository Download

3. Enter your internal repository url

(this should look similar to https://chocolatey.org/api/v2)

4. Choose your deployment method:


choco upgrade odata2poco-commandline -y --source="'STEP 3 URL'" [other options]

See options you can pass to upgrade.

See best practices for scripting.

Add this to a PowerShell script or use a Batch script with tools and in places where you are calling directly to Chocolatey. If you are integrating, keep in mind enhanced exit codes.

If you do use a PowerShell script, use the following to ensure bad exit codes are shown as failures:


choco upgrade odata2poco-commandline -y --source="'STEP 3 URL'" 
$exitCode = $LASTEXITCODE

Write-Verbose "Exit code was $exitCode"
$validExitCodes = @(0, 1605, 1614, 1641, 3010)
if ($validExitCodes -contains $exitCode) {
  Exit 0
}

Exit $exitCode

- name: Ensure odata2poco-commandline installed
  win_chocolatey:
    name: odata2poco-commandline
    state: present
    version: 2.2.1
    source: STEP 3 URL

See docs at https://docs.ansible.com/ansible/latest/modules/win_chocolatey_module.html.

Coming early 2020! Central Managment Reporting available now! More information...


chocolatey_package 'odata2poco-commandline' do
  action    :install
  version  '2.2.1'
  source   'STEP 3 URL'
end

See docs at https://docs.chef.io/resource_chocolatey_package.html.


Chocolatey::Ensure-Package
(
    Name: odata2poco-commandline,
    Version: 2.2.1,
    Source: STEP 3 URL
);

Requires Otter Chocolatey Extension. See docs at https://inedo.com/den/otter/chocolatey.


cChocoPackageInstaller odata2poco-commandline
{
   Name     = 'odata2poco-commandline'
   Ensure   = 'Present'
   Version  = '2.2.1'
   Source   = 'STEP 3 URL'
}

Requires cChoco DSC Resource. See docs at https://github.com/chocolatey/cChoco.


package { 'odata2poco-commandline':
  provider => 'chocolatey',
  ensure   => '2.2.1',
  source   => 'STEP 3 URL',
}

Requires Puppet Chocolatey Provider module. See docs at https://forge.puppet.com/puppetlabs/chocolatey.


salt '*' chocolatey.install odata2poco-commandline version="2.2.1" source="STEP 3 URL"

See docs at https://docs.saltstack.com/en/latest/ref/modules/all/salt.modules.chocolatey.html.

5. If applicable - Chocolatey configuration/installation

See infrastructure management matrix for Chocolatey configuration elements and examples.

This package was approved by moderator AdmiringWorm on 27 Apr 2017.

Description

Usage: o2pgen [options]

	  -r, --url           Required. URL of OData feed.
	  -u, --user          User name for authentication.
	  -p, --password      password for authentication.
	  -f, --filename      (Default: poco.cs) filename to save generated c# code.
	  -x, --metafile      Xml filename to save metadata.
	  -v, --verbose       (Default: False) Prints C# code to standard output.
	  -d, --header        (Default: False) List  http header of the service
	  -l, --list          (Default: False) List POCO classes to standard output.
	  -k, --key           (Default: False) Add Key attribute [Key]
	  -t, --table         (Default: False) Add Table attribute
	  -q, --required      (Default: False) Add Required attribute
	  -n, --navigation    (Default: False) Add navigation properties
	  -e, --eager         (Default: False) Add non virtual navigation Properties for Eager Loading
	  -b, --nullable      (Default: False) Add nullable data types
	  -i, --inherit       for class inheritance from  BaseClass and/or interfaces
	  -m, --namespace     A namespace prefix for the OData namespace
	  -c, --case          (Default: none) Type pas or camel to Convert Property Name to PascalCase or 
						  CamelCase
	  -a, --attribute     Type all attributes separated by one or more space. 
						  Allowed words are:key required json table.
	  -j, --Json          (Default: False) Add JsonProperty Attribute, 
						  example: [JsonProperty(PropertyName = "email")]
	  --help              Display the help screen.


	 example
	 myprojectfolder\o2p\o2pgen -r http://services.odata.org/V4/OData/OData.svc -f myprojectfolder\northwind.cs
	 generate c# POCO clases and write to the file myprojectfolder\northwind.cs

	For list of features, read: https://github.com/moh-hassan/odata2poco/blob/master/README.md 
	How to use, read: https://github.com/moh-hassan/odata2poco/wiki

content\o2p\o2pgen.exe
md5: 0624E96AFBC1B9DF95C76130011DAA97 | sha1: DD381A67574D6C43B93E07BC24D0E5CCA118E9BD | sha256: E1AD990F66F80CA8D27B92C00F3399EC3B3F5F3DACFAE22C642CCDC38ECE1B8B | sha512: AC67B8056ED18A121AE635F18792699F5E512739528C987FB88D5E1E7E9CBB28C902D88ED9FD6114AB2B336786DCF7FA2F9CC113A9B1C8F48ED66C2C9729FC8F
readme.txt
Thanks for installing the CommandLine tool (o2gen)
O2Pgen version 2.2.1
o2gen is a CommandLine tool for generating c# POCO classes from OData feeds. Project site: http://odata2poco.codeplex.com

Usage: o2pgen [options]  
  
  -r, --url           Required. URL of OData feed.
  -u, --user          User name for authentication.
  -p, --password      password for authentication.
  -f, --filename      (Default: poco.cs) filename to save generated c# code.
  -x, --metafile      Xml filename to save metadata.
  -v, --verbose       (Default: False) Prints C# code to standard output.
  -d, --header        (Default: False) List  http header of the service
  -l, --list          (Default: False) List POCO classes to standard output.
  -k, --key           (Default: False) Add Key attribute [Key]
  -t, --table         (Default: False) Add Table attribute
  -q, --required      (Default: False) Add Required attribute
  -n, --navigation    (Default: False) Add navigation properties
  -e, --eager         (Default: False) Add non virtual navigation Properties for Eager Loading
  -b, --nullable      (Default: False) Add nullable data types
  -i, --inherit       for class inheritance from  BaseClass and/or interfaces
  -m, --namespace     A namespace prefix for the OData namespace
  -c, --case          (Default: none) Type pas or camel to Convert Property Name to PascalCase or 
                      CamelCase
  -a, --attribute     Type all attributes separated by one or more space. 
                      Allowed words are:key required json table.
  -j, --Json          (Default: False) Add JsonProperty Attribute, 
                      example: [JsonProperty(PropertyName = "email")]
  --help              Display this help screen.


 example
 myprojectfolder\o2p\o2pgen -r http://services.odata.org/V4/OData/OData.svc -f myprojectfolder\northwind.cs
 generate c# POCO clases and write to the file myprojectfolder\northwind.cs

tools\LICENSE.txt
From: https://github.com/moh-hassan/odata2poco/blob/master/license.txt

LICENSE

The MIT License (MIT)

Copyright (c) 2016 Mohamed Hassan

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

tools\VERIFICATION.txt
VERIFICATION
Verification is intended to assist the Chocolatey moderators and community
in verifying that this package's contents are trustworthy.
 
To verify the checksum contents run the following command:
checksum  -f o2pgen.exe  -t sha256 -c E1AD990F66F80CA8D27B92C00F3399EC3B3F5F3DACFAE22C642CCDC38ECE1B8B

In cases where actual malware is found, the packages are subject to removal. Software sometimes has false positives. Moderators do not necessarily validate the safety of the underlying software, only that a package retrieves software from the official distribution point and/or validate embedded software against official distribution point (where distribution rights allow redistribution).

Chocolatey Pro provides runtime protection from possible malware.

Version Downloads Last Updated Status
odata2poco-commandline 3.0.3 41 Monday, February 25, 2019 Approved
OData2Poco-CommandLine (Install) 2.2.1 348 Wednesday, April 26, 2017 Approved

This package has no dependencies.

Discussion for the OData2Poco-CommandLine (Install) Package

Ground Rules:

  • This discussion is only about OData2Poco-CommandLine (Install) and the OData2Poco-CommandLine (Install) package. If you have feedback for Chocolatey, please contact the Google Group.
  • This discussion will carry over multiple versions. If you have a comment about a particular version, please note that in your comments.
  • The maintainers of this Chocolatey Package will be notified about new comments that are posted to this Disqus thread, however, it is NOT a guarantee that you will get a response. If you do not hear back from the maintainers after posting a message below, please follow up by using the link on the left side of this page or follow this link to contact maintainers. If you still hear nothing back, please follow the package triage process.
  • Tell us what you love about the package or OData2Poco-CommandLine (Install), or tell us what needs improvement.
  • Share your experiences with the package, or extra configuration or gotchas that you've found.
  • If you use a url, the comment will be flagged for moderation until you've been whitelisted. Disqus moderated comments are approved on a weekly schedule if not sooner. It could take between 1-5 days for your comment to show up.
comments powered by Disqus